i’m trying to create custom popup modal when click on “Go to checkout” button from Minicart. i have write this code to open custom modal if the guest checkout is disabled, and redirect the customer to checkout if the customer is logged in. this is my minicart mixin define([ 'jquery', […]
Magento
i created a shipping method, for example, the cost of delivery is $15, but if you deliver to the USA, then multiply the amount by 2 Model/Carrier/Custom.php <?php namespace CustomShippingMethodModelCarrier; use MagentoQuoteModelQuoteAddressRateRequest; use MagentoShippingModelRateResult; use MagentoShippingModelCarrierAbstractCarrier; use MagentoShippingModelCarrierCarrierInterface; use MagentoFrameworkAppConfigScopeConfigInterface; use MagentoQuoteModelQuoteAddressRateResultErrorFactory; use PsrLogLoggerInterface; use MagentoShippingModelRateResultFactory; use MagentoQuoteModelQuoteAddressRateResultMethodFactory; class Custom […]
What is the purpose of the shipping cost, I can observe the shipping Price is always visible on the frontend calculation. I’ve tried to edit the below file to verify the shipping cost. But it is not visible anywhere or not added to the shipping price it seems. vendor/magento/module-offline-shipping/Model/Carrier/Tablerate.php /** […]
Indexing console Everything else is working perfectly. i also disabled the elasticsearch and checked but error still there. Error is with Query, at last word “AND (())”, when i remove this and run directly on Mysql, it works. Where this Query is written so i could fix it. Thanks
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.
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?