Skip to content

magento man

Create popup after customer logged in

How to show a popup as soon as customer logs in. I created an customer_login event and called an observer, I want to display a phtml file with my popup code. Following doesn’t work etc/frontend/events.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Event/etc/events.xsd”>… Read More »Create popup after customer logged in

Magento 2.4 override core php file GuestPaymentInformationManagement.php

I want to override vendor/magento/module-checkout/Model/GuestPaymentInformationManagement.php. I made a di.xml in app/code/Jilco/Qtybug/etc/ like this: <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <preference for=”MagentoCheckoutModelGuestPaymentInformationManagement” type=”JilcoQtybugModelGuestPaymentInformationManagement” /> </config> And the GuestPaymentInformationManagement.php in /home/jilco/public_html/app/code/Jilco/Qtybug/Model/ Also dit the deployement steps rm -rf generated/code/* php bin/magento cache:flush php bin/magento setup:upgrade… Read More »Magento 2.4 override core php file GuestPaymentInformationManagement.php

Magento 2: Paypal adding double tax amount in AMT

I am adding tax programmatically on checkout using this code: class Tax extends MagentoTaxModelSalesTotalQuoteTax { /** * Class constructor * * @param MagentoTaxModelConfig $taxConfig * @param MagentoTaxApiTaxCalculationInterface $taxCalculationService * @param MagentoTaxApiDataQuoteDetailsInterfaceFactory $quoteDetailsDataObjectFactory * @param MagentoTaxApiDataQuoteDetailsItemInterfaceFactory $quoteDetailsItemDataObjectFactory * @param MagentoTaxApiDataTaxClassKeyInterfaceFactory $taxClassKeyDataObjectFactory… Read More »Magento 2: Paypal adding double tax amount in AMT

How can i get order data using credit memo plugin in Magento 2?

Here I used the credit memo plugin for updating the order data after refund success so how can I get order data in that function? etc/adminhtml/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”> <type name=”MagentoSalesApiCreditmemoRepositoryInterface”> <plugin name=”add_data_custom” type=”VendorModuleModelPluginCreditmemoAddData”/> </type> plugin file public… Read More »How can i get order data using credit memo plugin in Magento 2?