I am using Image Uploader component to upload multiple images. But when I click ‘Select from Gallery’ -> select image -> ‘Add Selected’, it gets duplicate images. How do I get the correct image without duplicates? <field formElement="imageUploader" name="slider"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="source" xsi:type="string">slider</item> <item name="scopeLabel" […]
Magento
I want to add the custom css for specific CMS Page, I know we can create a new theme for it but I want to use the Layout Update XML Or by adding it to empty page layout directly. Currently, if I add the below code and hit save, the […]
I have updated one of my plugin versions (payment plugin) to the most recent version and after running bin/magento setup:upgrade i run the comand : bin/magento setup:di:compile which gives me the following output (see image)
Would anyone know how we can change the order tracking URL on the order page (admin) to the shipping URL? (…/admin/order_shipment/view/shipment_id/xxxx) We have already managed to change the URL but we have not been able to set the shipping ID. Thank you so much.
I am facing the issue in the console With Content Security Policy ,I cant disable the Module Magento_Csp ,Please suggest the solution based on my efollowing console error [Report Only] Refused to load the stylesheet 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css' because it violates the following Content Security Policy directive: "style-src https://fonts.googleapis.com 'self' 'unsafe-inline'". Note […]
i am writing integration tests for my custom module that has a configuration field type obscure. in test file app/code/Foo/Bar/Test/Integration/Model/ConfigTest.php i have code: <?php namespace FooBarTestIntegrationModel; use FooBarModelConfig; use MagentoFrameworkObjectManagerInterface; use MagentoTestFrameworkHelperBootstrap; use PHPUnitFrameworkTestCase; class ConfigTest extends TestCase { private ?ObjectManagerInterface $objectManager; private ?Config $config; protected function setUp(): void { […]
Our M2 store is in development and we are in the process of adding Varnish enterprise. Magento is installed in its own namespace in Kubernetes called m2-dev and varnish is in another namespace called m2-dev-varnish. For now, I have a basic VCL just to get this infrastructure up and running. […]
In Magento 1.9, is there any solution to create a shopping cart rule, to add different percent discounts. For example, if the subtotal is between 100 and 199 to give a 5% discount, if the subtotal is between 200-299 to give a 10% and so on…there will be somewhere between […]
I am using Magenerds Baseprice in my shop. It worked in version 2.3, in 2.4.6 it stopped working – the base price is not updated on swatch change. I tracked it down to vendormagenerdsbasepriceviewfrontendtemplatesconfigurableafterprice.phtml. The options var is undefined: var options = _.object(_.keys(swatchWidget.optionsMap), {}); And I guess thats the reason […]