I have the following code: $this->transportBuilder->setTemplateIdentifier('promo_new_account_coupon') ->setTemplateOptions( [ 'area' => 'frontend', 'store' => 1, ] ) ->setTemplateVars([ 'customer' => $customerFullName, ]) ->setFrom('sales') ->addTo($customerEmail, $customerFullName); $this->transportBuilder->getTransport() ->sendMessage(); But emails are never translated. They are sent in the default language and not in the one defined in the store ‘1’ settings.
Magento
I want to remove New Address option from Checkout page in magento 2.4.3. https://prnt.sc/YOkaWUvochUd Can anyone help?
I’m trying to get order in my custom template. {{layout handle="layout" order=$order area="frontend"}} And $block->getOrder() method don’t work in my template.. It worked in version 2.4.3 How do I translate this into the new 2.4.5 requirement?
We have a store with 35000 sku and there are 950 attribute options – We find that when making any updates to products like price or qty or any other changes it is very very slow – like 5 mins if saving via Admin We have tried some import/export extension […]
Magento 2.4 Is it somehow possible to remove parts of the content of a CMS page before it is shown to the user? Is there a renderer I could overwrite? Example: The content of my CMS page is this: hello world, what a nice day today! Before it is shown […]
I’m trying to add a custom order attribute (BC_Pdfinvoice) and make it available in the Order API response. I created a module and added an extension_attributes.xml file here Vendor/Module/etc/extension_attributes.xml: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd"> <extension_attributes for="MagentoSalesApiDataOrderInterface"> <attribute code="BC_Pdfinvoice" type="string"/> </extension_attributes> </config> Then added Vendor/Module/etc/di.xml: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <virtualType […]
I’m trying to make Magento menu open categories only on click and disable hover function. It opens subcategories but once you open a subcategory it doesn’t collapse and you can’t expand a different subcategory I added in app/design/frontend/Vendor/theme/require-config.js the following code var config = { config: { mixins: { 'mage/menu': […]