Skip to content

onepage-checkout

Auto Added by WPeMatico

The shipping address is missing. Set the address and try again

I am getting an error like The shipping address is missing. Set the address and try again in magento2 checkout page….. vendor/magento/module-checkout/Model/PaymentInformationManagement.php(206): MagentoQuoteModelPaymentMethodManagement->set()n#1 /var/www/html/artisandev/vendor/magento/framework/Interception/Interceptor.php(58): MagentoCheckoutModelPaymentInformationManagement->savePaymentInformation()n#2 /var/www/html/artisandev/vendor/magento/framework/Interception/Interceptor.php(138): MagentoCheckoutModelPaymentInformationManagementInterceptor->__callParent()n#3 /var/w…code/Magento/Webapi/Controller/Rest/Interceptor.php(23): MagentoWebapiControllerRestInterceptor->__callPlugins()n#12 vendor/magento/framework/App/Http.php(116): MagentoWebapiControllerRestInterceptor->dispatch()n#13 /var/www/html/artisandev/vendor/magento/framework/App/Bootstrap.php(264): MagentoFrameworkAppHttp->launch()n#14 pub/index.php(30): MagentoFrameworkAppBootstrap->run()n#15 {main}”

Magento 2.4.5 recaptcha issue when move discount form to before methods

In checkout i moved “Apply Discount Code” form from afterMethods to beforeMethods. After upgrade to 2.4.5 recaptcha was added to this form. But doesnt load correctly <div data-bind=”{ attr: { ‘id’: getReCaptchaId() + ‘-wrapper’ }, ‘afterRender’: renderReCaptcha() }” id=”recaptcha-checkout-coupon-apply-wrapper”> <div… Read More »Magento 2.4.5 recaptcha issue when move discount form to before methods

How to hide and show the payment method based on shipping address country to sort the payment method

This code has worked to hide and show the payment method based on the shipping address country. public function execute(MagentoFrameworkEventObserver $observer) { //shipping company field $shippingCompanyField = $this->cart->getQuote()->getShippingAddress()->getCountryId(); $paymentMethod = $observer->getEvent()->getMethodInstance()->getCode(); if ($shippingCompanyField == ‘IN’) { if ($paymentMethod == “multisafepay_giropay”)… Read More »How to hide and show the payment method based on shipping address country to sort the payment method