What is a correct way to implement dependency injection for adding ext_order_id in existing order using its increment_id? I need to include it in existing php script of 3rd party module…
Magento
In my magento-2 website all the pages are open without trailing / but home page is open from both with and without trailing /, how fix home page without trailing /
I have a strange issue with my project. After analyzing the log files, I noticed that in one of the categories, when using filters, a weird URL appears. The typical URL looks like this: /data.html?data_lg=6+m. However, somewhere in the project, there seems to be a redirect that leads to URLs […]
I want to update the cart items using my custom API with the latest price which I am storing in a custom table. In the first API hit it is only updating the original custom price in the item table but not updating anything else. But when I hit the […]
I added a custom address attribute using the EavSetupFactory. /** * Class AddressAttribute */ class AddAddressClassificationAttribute implements DataPatchInterface { const ATTRIBUTE_CODE = 'address_classification'; /** * @param Config $eavConfig * @param EavSetupFactory $eavSetupFactory * @param AttributeResourceModel $attributeResourceModel */ public function __construct( private Config $eavConfig, private EavSetupFactory $eavSetupFactory, private AttributeResourceModel $attributeResourceModel ) […]
Page builder has defaults for most element styles e.g. like this: Out of the box it appears in this case the defaults are an unexpected 0 which means no default margins between columns – all are bunched up together. Seems wrong that customers have to individually style all columns instead […]
I am trying to add product specification section in admin product view page. This section has to include three images upload function that display its specification, and then title input field, description textarea. So that I am trying to show to customer product’s properties that has three images , image […]
I need to make it mandatory (required field) to enter a coupon code during checkout. Do you have any suggestions? Alternatively, prevent the checkout order confirmation if a coupon code is not entered. I’m using magento 2.4.5. thanks
I am trying to download an invoice via “Print PDF” in one of my orders. But I’m getting the error “Failed – Network error” in Chrome, Firefox and Edge. How can I fix this so I will be able to download an invoice again? If I need to facilitate more […]