What's the deal with Deno? We talk with a major contributor to find out. Listen now.

New answers tagged

0

Finally was able to fix issue. I just had to reload the message after setting CustomerData message section. //Display error if found after jquery var messages = $.cookieStorage.get('mage-messages'); if (!_.isEmpty(messages)) { customerData.set('messages', {messages: messages}); $.cookieStorage.set('mage-...


0

Finally was able to fix issue. I just had to reload the message after setting CustomerData message section. //Display error if found after jquery var messages = $.cookieStorage.get('mage-messages'); if (!_.isEmpty(messages)) { customerData.set('messages', {messages: messages}); $.cookieStorage.set('mage-...


0

I think the issue is with js when you load the website for the first time and scroll down you get this issue. because of this js issue, your cart is not working properly. ajaxinfinitescroll.js:90 Uncaught TypeError: $.mage.formKey is not a function at c.<anonymous> (ajaxinfinitescroll.js:90) at c.proxy (jquery.js:535) at IASCallbacks.fire (...


0

Finally was able to fix issue. I just had to reload the message after setting CustomerData message section. //Display error if found after jquery var messages = $.cookieStorage.get('mage-messages'); if (!_.isEmpty(messages)) { customerData.set('messages', {messages: messages}); $.cookieStorage.set('mage-...


0

On checkout you can use the magento's default Message component Magento_Ui/js/model/messageList and use the method addSuccessMessage or addErrorMessage based upon your response. You can refer below code also define([ 'jquery', 'Magento_Checkout/js/action/get-totals', 'Magento_Customer/js/customer-data', 'Magento_Ui/js/model/messageList', // added ...


0

Magento 2 controller has execute method which only gets called. For your application you can create a separate class (a block or helper) that handles the logic you want In the existing controller, you can inject that class & call its methods. Below is the example :- class Index extends \Magento\Framework\App\Action\Action { protected $helperData; ...


0

This is how Magento is doing it in the minicart. Maybe it helps you. https://github.com/magento/magento2/blob/2.4/app/code/Magento/Checkout/view/frontend/web/js/sidebar.js#L213


0

Go to Magento admin and edit any item. There is one link available below QTY field advanced inventory. Click on that option. There is one text field available for it. Maximum Qty Allowed in Shopping Cart you can uncheck Use Config Settings and set QTY there. Save that product. Hope it will help you.


Top 50 recent answers are included