3

In magento version 2.2, when admin is creating an order, I want to automatically select shipping method (Flatrate) without manual selection.

I tried adding the following commands (order.loadShippingRates() and order.setShippingMethod('flatrate')) to the button "Add Selected Products To Order".
This caused the the product to disappear in the product selection list and the shipping method to load without any selection.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.