Questions tagged [magento-2.0.7]
Denotes questions related to Magento CE and EE 2.0.7
137 questions
0
votes
0
answers
77
views
Some modules use code versions newer or older than the database. First update the module code, then run 'setup:upgrade'
The module code base doesn't match the DB schema and data.
Magento_Theme schema: 2.0.1 -> 2.0.0
Magento_Theme data: 2.0.1 -> 2.0.0
Magento_Customer ...
1
vote
2
answers
1k
views
After rewrite Magento\Customer\Model\AccountManagement giving me fatal error
I have successfully rewrite Magento\Customer\Model\AccountManagement using preference but after enabling paypal express its giving me error like below, on checkout and cart page.
<?xml version="1....
0
votes
0
answers
157
views
Magento 2 : JS issue at the time of enable bundle js
I am trying to enable bundle js feature but getting this issue on product view page
SyntaxError: missing ; before statement
</div>'}}(window,document,location,"undefined"!
Any one have idea ...
1
vote
0
answers
88
views
White screen Magento homepage after migration settings
When going to our base url we get a white screen on the homepage:
http://95.85.37.169/
We migrated from magento 1.9.0.1 to 2.0.7 and cannot figure out why this is crashing now.
I cannot figure out ...
0
votes
2
answers
2k
views
Recently Viewed not showing up when full page cache is enable
The only solution i found so far is to add cacheable="false" to recently_viewed block in xml, but this did not work. Is there any other way to force magento show "Recently Viewed" block on product ...
2
votes
1
answer
152
views
Hide a shipping method frontend and still show in backend condition based magento 2
I want hide a multiple shipping method in frontend based on customer group.
Please tell me Where I have to put the condition to check shipping method with customer group?
If match then shipping ...
0
votes
2
answers
451
views
Change backup folder from /var/backup to different/external-shared folder in Magento 2
I need to change my backup directory to some other directory which is different from Magento installation root directory. How can i do this?
0
votes
1
answer
850
views
Add new field to shipment grid (with items price incl tax) - Magento 2 [closed]
I need to add a new field to shipment grid and this field must contain items price incl tax. So I also should plug into the shipment saving prosess to calculate and save this field value.
1
vote
0
answers
496
views
How is the minicart content loaded and rendered?
I have overriten the content.html minicart template in my theme, currently the code looks like this:
<!-- ko if: cart().summary_count -->
<div class="detailArea">
<div>
<ol ...
3
votes
2
answers
3k
views
Magento 2: How to remove add to cart template from product detail page
I have to remove add to cart button from product detail page when product store has 0. How to achieve this
1
vote
1
answer
628
views
How to add href to custom attribute in customer grid?
I have created the custom attribute to upload the business proof file during registration. I am able to store the file in /pub/media and file name in Database and the file name also displaying in ...
0
votes
2
answers
169
views
Apply specific tax only if products price more than 110
Is there any way to create tax rule based on cart total product unit price? I need to implement New York 4% state tax for purchase price over $110. Thanks.
A little clarification. Tax should be ...
4
votes
3
answers
5k
views
Disable payment method on frontend only
How to disable payment method
Check / Money Order
only on frontend, but left available for admin on backend ?
I can't find solution for M2
0
votes
1
answer
1k
views
override in cart page in the custom module in the magento 2 is not work?
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance dc" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<...
2
votes
1
answer
179
views
how can I set the type before order confirm in magento 2 in phtml file
In magento 1
$canApplyMsrp = Mage::helper('catalog')->canApplyMsrp($_item->getProduct(), Mage_Catalog_Model_Product_Attribute_Source_Msrp_Type::TYPE_BEFORE_ORDER_CONFIRM);
how can I set this in ...
6
votes
2
answers
8k
views
How to call block method from Controller in magento 2
I want call block methods from controller. My files are below
Controller
namespace Vendor\ModuleName\Controller\Index;
use Magento\Framework\App\Action\Action;
use Magento\Framework\App\Action\...
0
votes
0
answers
1k
views
How can make jquery ajax controller in magento 2
I am not able to find correct approaches to done this work. I found some resources but there they guys are using model files also but they didn't explain about that files. My codes are below
...
1
vote
0
answers
5k
views
How to use Ajax in magento 2 custom module
I am working on one custom module and i need product load when any ID is clicked. Loading is handle by ajax. I am not aware of ajax in Magento 2. Can anybody give me small demo of ajax in Magento 2
...
1
vote
0
answers
140
views
How to translate html content in magento 2 [duplicate]
I am having some content in .html file in checkout page, I want to translate that content to french but I am unable to translate. I tried many methods but still not getting.I translate all phtml files ...
2
votes
3
answers
4k
views
How to override addtocart.phtml for all type of product in magento 2
I have done this but my code is not working for all types of product.
layout file
<?xml version="1.0"?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
2
answers
3k
views
How to update shopping cart after addtocart button click in magento 2
My layout file code is
cms_index_index.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/...
0
votes
1
answer
995
views
How to add product into shopping cart by single click using custom module in magento 2?
My template file code is
$listBlock = $this->_listBlock;
$addToCartUrl = $listBlock->getAddToCartUrl($_product);
?>
<form data-role="tocart-form" action="<?php echo $...
3
votes
1
answer
4k
views
How to get custom Featured product collection in magento 2
I have created one custom attribute and also i have added some product under that attribute now i need product collection of that attribute. Below is my block code for collection but it's not working
...
3
votes
0
answers
179
views
How to get layout tab ajax request parameter in block?
I want to send productId when vendor tab is clicked .
vendor_section current ajax url is :- dailydealadmin/index/vendor.
But I want this url like this :- dailydealadmin/index/vendor/productId/5.
...
1
vote
1
answer
73
views
Change link jquery from local to web
This is link jquery in my local
../pub/static/frontend/../../en_US/jquery/jquery.min.js
and I want change to
https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
Anyone help me?