Count Down Banner
I create a countdown banner on the homepage. I am storing from date and to date in the system.xml. I want to show the countdown between the dates From date to To date. Can anybody guide me How can I… Read More »Count Down Banner
Auto Added by WPeMatico
I create a countdown banner on the homepage. I am storing from date and to date in the system.xml. I want to show the countdown between the dates From date to To date. Can anybody guide me How can I… Read More »Count Down Banner
I have a JS file like this: define([ ‘jquery’, ‘underscore’, ‘matchMedia’, ‘text!ajaxcart/template/modal-slide.html’, ‘text!ajaxcart/template/modal-popup.html’, ‘Magento_Customer/js/customer-data’, ‘Magento_Catalog/product/view/validation’, ‘Magento_Ui/js/modal/modal’, ‘mage/translate’ ], function($, _, mediaCheck, _slideTpl, _popupTpl, customerData) { … } But for some reason, it is not entered into the code in function… Read More »JavaScript not executed when it has Magento_Customer/js/customer-data dependencia in define
I have upgraded my store from Magento version 2.3.5-p1 to 2.4.5-p1. In one of the extension there is a uiComponent that is using the value of another uiComponent using the importds. ‘imports’ => [ ‘inputType’ => ‘${$.parentName}:inputType’, ], The above… Read More »Magento 2.4.5 uiComponent imports not working
I am a complete newbie to Magento development and I am CSE student working as an intern. My question is as follows: Is it possible to add a button to a Magento 2 page with JavaScript and web components? If… Read More »Inserting button with javascript/web component
I have the following script which i need to add the product brand/manufacturer and SKU <script> window.addEventListener(‘liveload’, function() { IcecatLive.getDatasheet( { ‘reasonstobuy’:’#Container5′, }, { Brand: **$manufacturer**, PartCode: **$sku**, UserName: ‘myusername’ }, ‘en’) }); </script> I have added custom.phtml in web/magento/app/design/frontend/MyTemplate/default/Magento_Catalog/templates/product/view… Read More »How can i pass product attribute manufacturer and SKU to javascript?
I’m working on a dropdown where user can select tax. So I edited addtocart.phtml to put my custom code: I’ve added an ajax call but I’m stuck how set product tax from 10% to 22% Can anyone help me? <?php… Read More »Dropdown Set tax on product page
We are using Magento 2.4.3 version and php version is 7.4 Following that document – https://docs.scandipwa.com/getting-started-1/magento-integration While running BUILD_MODE=magento yarn start command getting an issue of – Failed to compile. ./node_modules/@scandipwa/scandipwa/src/util/Request/QueryDispatcher.ts TypeError: /var/www/html/magento243_scandipwa/src/localmodules/my-app/node_modules/@scandipwa/scandipwa/src/util/Request/QueryDispatcher.ts: child.isClassAccessorProperty is not a function at Array.forEach… Read More »Magento 2 scandipwa child.isClassAccessorProperty is not a function
I need help. In Chrome console I receive Error. I don’t know where to look for the error and how to fix it. Uncaught SyntaxError: Expected property name or ‘}’ in JSON at position 1 at JSON.parse (<anonymous>) at getData… Read More »Magento 2. Uncaught SyntaxError: Expected property name or ‘}’ in JSON at position 1
I need to overwrite a third party module js with my own one. I read in many articles which map is the way to do it. Foodentyco_Checkout/js/model/shipping-rate-service-override has to override Amasty_Checkout/js/model/shipping-rate-service-override. map: { ‘*’: { ‘Amasty_Checkout/js/model/shipping-rate-service-override’:’Foodentyco_Checkout/js/model/shipping-rate-service-override’ } } However, this… Read More »Magento Js Override another Js File (which is already overriding a Magento Core js)
I am getting this error in the Magento 2.4.5 P1 in the cosole : {“readyState”:4,”responseText”:”{“message”:”No such entity.”}”,”responseJSON”:{“message”:”No such entity.”},”status”:400,”statusText”:”Bad Request”} in the customerdata.js When i log this I get this error