Uncaught Error: Mismatched anonymous define() module: function(){return cr} https://requirejs.org/docs/errors.html#mismatch at makeError (require.js:168:17) at intakeDefines (require.js:1254:36) at require.js:1452:25
Magento2
I have a block with a function getParts() which is called from a template. This function does a bunch of queries and returns an array of data. I need to make it so if it does not return any data, a 404 is generated. I was able to successfully do […]
Using Codazon Fastest theme, I have created ~/fastest/fastest_child/Magento_Catalog/web/css/source/_extend.less which contains the following CSS extensions: .catalog-category-view.product-item-photo { display: none } .action.tocompare.show-tooltip { display: none } I have also tried defining class more specifically, like this: .products-list.product-item-photo { display: none } Images and compare button are removed when I apply these styles […]
I am using the REST API to sync orders down from Magento into our ERP. When retrieving an order’s details, I need the billing address’s Company value in order to make sure that the synced order is associated with the right account. Presently, despite having a company attached to the […]
I am installing PWA but facing below error when executing command sudo yarn run build As of version 12.1.0, PWA Studio requires the appropriate PWA metapackage to be installed on the backend. For more information, refer to the 12.1.0 release notes here: https://github.com/magento/pwa-studio/releases/tag/v12.1.0
How to change the image of swatches for disabled options. By default, Magento put a vertical red line if the option is not available for all options. I want to change the image to my custom image.
I am trying to add a custom Shipping Method that is only available via API (no storefront checkout). My starting point is the MagePsycho custom shipping module, which works fine, but as expected it shows on both checkout and API. I’m trying to find the way to hide it from […]
I followed this (with some fixes, since it wasn’t working) and created a functioning form that I call as a block in a CMS page created in the backoffice from Content > Pages. Later I followed this to add a native Magento captcha to the form. And here comes the […]
I need to update or create tier prices in bulk. I’ve created a custom command and what I do is to update the table ‘catalog_product_entity_tier_price’ directly with a query and the info comming from a CSV file. I know is not the best practice but I prefer to do this […]