I have tried getting shipping address with both MagentoCheckoutModelSession and MagentoCheckoutModelCart, accessing the Quote object, yet it’s returning the default shipping address instead. Pulling that data from my block class like so: $statecode = $block->getCart()->getQuote()->getShippingAddress()->getRegionCode(); Switching addresses does not change the address this returns. Should I be calling a different […]
Magento2
How can I organize the layout of the gallery so that I can easily view the newest images recent uploaded at the top of the gallery? They always appear at the end of the list.
With template hints ran on older Magento version, I could locate StripeIntegration_Paymentswebtemplatepaymentform.html that is rendering Pay By Card radio input in the payment page. I tried adding the code below in it display the logo, but it doesn’t work. Do I need to do it via KnockOut JS that I […]
I have two payment gateway. I want to change price accordingly I Created the product attribute for custom price. Now i want price come according to payment gatway
I’m using Magento 2.4.2-p1, Apache 2.4.54, php 7.4, and am getting a ParseError: syntax error when a class name is declared with a property declaration – is this expected? is there a work around? From what I can tell you should be able to use a classname as of 7.4, […]
I am trying to show additional information about the Shipping Method in Checkout. I could already save this information in the column method_description in quote_shipping_rate. And with a plugin, I add the data as an extension attribute: 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="MagentoQuoteApiDataShippingMethodInterface"> <attribute code="method_description" type="string" /> </extension_attributes> […]
I’m not a Magento expert, and do not have access to the underlying code, but work with a Magento website. Since the latest update to Magento 2.4.5 we have noticed that when and order is made it is made with the “Pending(new)” status. This then triggers it to send out […]
I have tried to import CSV with some following Data, My code is working for insert new record in the table which is in the CSV but not updating the existing record. Everytime when I upload the CSV, it create the new record in Database. For Example: Suppose, CSV file […]
Cree un módulo y lo agregué al menú del admin, al ingresar desde el menú del admin me redirecciona al dashboard y me muestra el mensaje: “Invalid security or form key. Please refresh the page Custom Module”. menu.xml <?xml version="1.0"?> <add id="Wolf_MyModule::MyModule" title="My Module" module="Wolf_MyModule" sortOrder="51" resource="Wolf_MyModule::MyModule"/> <add id="Wolf_MyModule::cars" title="Cars" […]