After editing a product, i get this error,
We can't find the quote item.
I cannot get new quote_id after editing a product.
Has anyone got any idea about this?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityAfter editing a product, i get this error,
We can't find the quote item.
I cannot get new quote_id after editing a product.
Has anyone got any idea about this?
Please create/update this file.
Vendor/Module/view/frontend/requirejs-config.js
Code:
var config = {
config: {
mixins: {
'Magento_Msrp/js/msrp': {
'Vendor_Module/js/msrp': true
}
}
}
};
Create a new file in Vendor/Module/view/frontend/web/js/msrp.js
Code:
define(['jquery'], function ($) {
return function (originalWidget) {
$.widget('mage.addToCart', $.mage.sidebar,
{
_addToCartSubmit: function (event) {
this.element.trigger('addToCart', this.element);
if (this.element.data('stop-processing')) {
return false;
}
if (this.options.addToCartButton) {
$(this.options.addToCartButton).click();
return false;
}
if (this.options.addToCartUrl) {
$('.mage-dropdown-dialog > .ui-dialog-content').dropdownDialog('close');
}
event.preventDefault();
$(this.options.cartForm).submit();
}
}
);
return $.mage.addToCart;
};
});
Execute the below command.
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
Now check it and it is working properly.