Categories
CMS Magento Mastering Development

how to solve 401 redirect on REST API on Custom tab between shipping and Payment option

I have created some steps between shipping and Payment form and add some field between then and applied ajax on that but i have facing an issue for not logged in user it will gave an error of 401 and redirect on login page on saving first field. Will anyone help me how to successfully […]

Categories
CMS Magento Mastering Development

Magento 2 JS Checkout unused parameters

The question is about this file vendor/magento/module-checkout/view/frontend/web/js/action/set-payment-information.js define([ ‘Magento_Checkout/js/model/quote’, ‘Magento_Checkout/js/model/url-builder’, ‘mage/storage’, ‘Magento_Checkout/js/model/error-processor’, ‘Magento_Customer/js/model/customer’, ‘Magento_Checkout/js/action/get-totals’, ‘Magento_Checkout/js/model/full-screen-loader’ ], function (quote, urlBuilder, storage, errorProcessor, customer, getTotalsAction, fullScreenLoader) { }) getTotalsAction is not used here and there, but is included. Can anybody explain how and why?

Categories
CMS Magento Mastering Development

Checkout custom shipping address field – set as required

I have created a custom module that adds a text field in shipping address. It’s workin ok but I’d like to make it required. How can I do that? I tried adding ‘required-entry’ => true at validation parameter, in file Plugin/Checkout/LayoutProcessor.php but it didn’t work. Here are the module files: Mymodules/FieldCheckout/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, ‘Mymodules_FieldCheckout’, […]