I’m trying to add tracking code to my onepage success page. I’ve created layout and created success.phtml to my custom theme. app/design/frontend/my_theme/Magento_Checkout/layout/checkout_onepage_success.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <head> <script src="module-checkout::templates/success.phtml"/> </head> app/design/frontend/my_theme/Magento_Checkout/templates/success.phtml my tracking code Everything fine but the tracking code didn’t appear when I click view page source in my […]
Magento2
I have created system.xml file and passed value from config.xml file want to show that value message on checkout page.like this
Previously, we used the following module to load the email variable with a custom CreatedAt value. Because this is deprecated, it will not work anymore (https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/templates/template-email-migration.html). How can we modify the following, to keep using this custom CreatedAt from Magento 2.4.3-p2? app/code/Mago/Delivery/registration.php <?php MagentoFrameworkComponentComponentRegistrar::register( MagentoFrameworkComponentComponentRegistrar::MODULE, 'Mago_Delivery', __DIR__ ); app/code/Mago/Delivery/etc/module.xml <?xml […]
Magento 2.3.7, PHP 7.4.30 I installed the VES Page Builder extension (downloaded file from land of coder) manually, according to their readme: Upload module files in the module packages in to folder: app/code/Ves/All, app/code/Ves/Setup, app/code/Ves/BaseWidget, app/code/Ves/PageBuilder Then run commands php bin/magento setup:upgrade --keep-generated php bin/magento setup:static-content:deploy -f php bin/magento cache:clean […]
I am included in the invite-only Buy with Prime. They have provided a code snippet but when I paste it as text in the description, it doesn’t render. They suggest I put it in the template. Where would that template be? I am using Pearl theme from WeltPixel if that […]
I can’t succeed to make this error messages removed from my M 2.4 I did my custom csp module, everything works fine except this one The Content-Security-Policy directive ‘frame-ancestors’ does not support the source expression ”unsafe-inline” I did tried the following fix. But nothing worked <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd"> […]
I want create controller for specific path, but i can’t know how i can do this. My controller must work with path like: site.com/usa/some-review/dynamicParam My path for controller: site.com/some-review/index/index How i can create controller for usa/some-review/dynamicParam or forward redirect from usa/some-review/dynamicParam to some-review/index/index? Thanks)
I’m using magento with docker and deploying to a kubernetes cluster. When I install it it finishes successfully, but when I try to access the admin panel it returns the 502 Bad Gateway error. I’ve tried all the settings and without success and on the other hand nothing appears in […]
I want to sort product collection by Custom Price attribute. here is my code Here is my code, what is the problem here, i dont understand? <?php namespace VendorModuleModelVisualMerchandiserSorting; use MagentoCatalogModelResourceModelProductCollection; use MagentoVisualMerchandiserModelSortingSortAbstract; use MagentoVisualMerchandiserModelSortingSortInterface; class CustomPriceBottom extends SortAbstract implements SortInterface { /** * @param Collection $collection * @return Collection […]