Skip to content

magento2.4

Auto Added by WPeMatico

Mandatory custom field in the payment choice process

I’m trying to add a checkbox in the payment selection process. The checkbox appears correctly. I can’t get it to be handled as mandatory. What am I doing wrong? This is my code: $jsLayout[‘components’][‘checkout’][‘children’][‘steps’][‘children’][‘billing-step’][‘children’][‘payment’][‘children’][‘payments-list’][‘children’][‘before-place-order’][‘children’][‘privacy’] = [ ‘component’ => ‘Magento_Ui/js/form/element/abstract’, ‘config’… Read More »Mandatory custom field in the payment choice process

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 Newsletter Error Invalid Method Interceptor::loadByCustomer

Magento 2 Error Invalid Method Interceptor::loadByCustomer {“0″:”Mu00e9todo invu00e1lido VendorModuleModelSubscriberInterceptor::loadByCustomer”,”1″:”#1 VendorModuleObserverLogin->execute() called at [vendor/magento/framework/Event/Invoker/InvokerDefault.php:88]n#2 MagentoFrameworkEventInvokerInvokerDefault->_callObserverMethod() called at [vendor/magento/framework/Event/Invoker/InvokerDefault.php:74]n#3 MagentoFrameworkEventInvokerInvokerDefault->dispatch() Code: <?php namespace VendorModuleObserver; use MagentoCustomerModelSession; use MagentoFrameworkEventObserver; use MagentoFrameworkEventObserverInterface; use MagentoNewsletterModelSubscriber; use MagentoStoreModelStoreManagerInterface; class Login implements ObserverInterface { /** * @var… Read More »Magento 2 Newsletter Error Invalid Method Interceptor::loadByCustomer

How to add intlTelInput in Magento Checkout

International phone plugin : link I added in my requirejsconfig.js var config = { map: { ‘*’: { customDisplayCheckout: ‘Amasty_CheckoutCore/js/custom’, }, paths: { “intlTelInput”: ‘Amasty_CheckoutCore/js/intlTelInput’, “intlTelInputUtils”: ‘Amasty_CheckoutCore/js/utils’ }, shim: { ‘intlTelInput’: { ‘deps’:[‘jquery’, ‘knockout’] } } } }; I also… Read More »How to add intlTelInput in Magento Checkout