Skip to content

shipping-methods

Auto Added by WPeMatico

How can I get the a selected option of Admin->configuration->Sales->Deliver Methods->field id? I need to inject this into a class

I will be injecting this into a ViewModel or Plugin. I have a custom configurable field in the Admin->configuration->Sales->Deliver Methods->flatrate and I need to check the value of it to compare with another string because it will change over time.… Read More »How can I get the a selected option of Admin->configuration->Sales->Deliver Methods->field id? I need to inject this into a class

Magento 2 checkout, I need to display or hide a shipping method depending on if a coupon code was entered and is valid. How can I do this?

I have a price rule attached to the flat rate shipping method as an option, and I want to intercept when the coupon is added, so that I can hide this flat rate method unless the coupon code matches the… Read More »Magento 2 checkout, I need to display or hide a shipping method depending on if a coupon code was entered and is valid. How can I do this?