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 […]
Magento
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 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
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 […]
Magento 2.4.6 I am trying to duplicate a product using the MagentoCatalogModelProductCopier class which is also used in MagentoCatalogControllerAdminhtmlProductDuplicate in the execute function.. When I click the button in admin to duplicate a product, it works, all attributes are being set in the copy. Doing the same in my code […]
I’m struggling with PHP 8.2 and some Magento modules I inherited with a site. I believe the errors are specifically because of PHP 8.2 For example: main.CRITICAL: Exception: Deprecated Functionality: Creation of dynamic property SomethingSomethingHelperIndex::$attributeRepository is deprecated in This is the line of code that it specifically references in the […]
I need to create a custom invoice using the default pdf class having an additional option in admin/orders download as “Invoice with vat” I did create a module using code from the following link, now I need to link it up with an admin download option. Module Im new in […]