As the title says, the X-Magento-Vary cookie isn’t working that well on my website. Sometimes, whenever a customer logs in, the cookie isn’t created and that makes the user lose the session as soon as he enters another page. I use Varnish 5, Magento 2.3.3 and nginx (could microcache be […]
Magento2
I have an email template that I’m updating using the Magento admin interface. Essentially what I’m trying to do is get the Order ID, hash it, and send it as part of the email. I read that PHP short tags can be used in email templates, but all of them […]
after completing a data-migration trying to exclude the import of products I can no longer complete the saving of a configurable product and the following window is shown I have a dump of the db created before migrating (with all configurable products ok), which table can I look at to […]
I have a Magento module that currently provides a custom API route. I am wanting to update it to push some Javascript to the /customer/account page. I tried following the answer here but this didn’t work, my script is not rendered or executed on the customer account page. My module […]
Basically I am trying to get the pre-selected shipping method and shipping carrier on the page load. Also it should capture the shipping method and shipping carrier as soon as the customer selects another radio button. So my question is how can I get shipping method as per above conditions? […]
The following Magento 1 code gets me a JSON string of all country codes (states, provinces, cantons, etc.) Mage::helper('directory')->getRegionJson() What is the equivalent code in Magento 2?
Is it possible to run jasmine tests without having a magento site configured? As in purely from the project as it is on github (so without database)? The furthest I’ve got is setup:di:compile but than setup:static-content:deploy -f fails because The default website isn't defined. Set the website and try again.
I have copied my project from production environment into dev environment and so needed to update configs to the ones used for dev environment. I updated the in app/etc/mongogento.xml and other config files but my Mage code still selects the production mongodb server (“dbserver:27017″) instead of the dev mongodb server […]