![]() ![]() We are also setting the in-built Ship to Applicable/Specifi Countries which will allow the store admin to configure the method to work for only certain shipping addresses.We are defining a title, name, cost which are self explanatory. ![]() We are defining a yes/no field which will allow the store admin to enable or disable the method.Techflarestudio/FreeShipping/etc/adminhtml/system.xml Magento\Directory\Model\Config\Source\Country Magento\Shipping\Model\Config\Source\Allspecificcountries Only in this case we will add a new group under carriers section. We can do this in system.xml just as any other configuration file. Once you have created the module the first step is to define system configuration for our new shipping method. Ours is going to be called Techflarestudio_FreeShipping. Lets get started.įirst you will need to create a Magento 2 module. This can turn out to be useful in case you already use the stock method for something else and do not want to handle cart rules. In order to give this a bit of business meaning we will create the method as a custom free shipping method. In addition we will also add functionality that allows hiding other methods if the new one is available. In this article we are going to create a custom shipping method which will shown only once the cart grand total value reaches over a configured value. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |