New answers tagged

0 votes

Can we use 2 shipping method in 1 checkout?

Magento 2 has multi-address Shipping options this allows the customers to ship an order to multiple addresses during checkout. Enable this feature. Is it that the address will be same but products ...
0 votes

How can i remove object manager from my code of Magento 2

i try to use helper and this code good for me. i take quote by checkoutHelper <?php namespace Custom\ShippingMethod\Model\Carrier; use Magento\Quote\Model\Quote\Address\RateRequest; use Magento\...
  • 47
1 vote

How can i remove object manager from my code of Magento 2

Try below code <?php namespace Custom\ShippingMethod\Model\Carrier; use Magento\Quote\Model\Quote\Address\RateRequest; use Magento\Shipping\Model\Carrier\AbstractCarrier; use Magento\Shipping\...
0 votes

How to call the shipping method click event on custom dropdown click event in magento 2?

Inject 'Magento_Checkout/js/model/shipping-save-processor' to the shipping-option-select.js file and call saveShippingInformation(); method in hasChanged function. define([ ... 'Magento_Checkout/js/...
  • 2,689
1 vote

How to call the shipping method click event on custom dropdown click event in magento 2?

Try adding below code Inject Magento_Checkout/js/action/select-shipping-method underscore, 'Magento_Checkout/js/action/select-shipping-method', 'Magento_Checkout/js/checkout-data', 'Magento_Checkout/...
0 votes

How to call the shipping method click event on custom dropdown click event in magento 2?

You can get selected shipping method value in js so on that based you can show your dropdown. File: vendor/magento/module-checkout/view/frontend/web/js/view/shipping.js selectShippingMethod: function (...
0 votes
Accepted

I created a simple shipping method, I want to set the country rate manually? Example US x2

In the process of learning magento, I realized that the method I need does not exist (but it is not exactly, i only student) i wrote a code that helped me with my task: if ($request->...
  • 47
2 votes
Accepted

Magento 2 Shipping carrier Shipping Cost Vs Shipping Price

The cost is what the merchant pays. The price is what the customer pays. Magento: Magento setPrice() and setCost() methods
  • 2,024

Top 50 recent answers are included