cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Flat Rate Shipping as a percentage of order

Setting Flat Rate Shipping as a percentage of order

In the other version of my Magento site on 1.7 I had my shipping rates set as 10% of total order. I upgraded to 2 and there is no option that I can see to do that again. 

 

I want to set my shipping rate to 10% of total order.

 

Thanks

4 REPLIES 4

Re: Setting Flat Rate Shipping as a percentage of order

Hello @IroncladDigital

 

magento 1 and 2 both provide only fixed price option.

 

If you want to implement then you need to override or create a plugin for below class.

 

Magento\OfflineShipping\Model\Carrier\Flatrate.php

 

Hope it will help you if it will help you then give Kudo or accept as solution.

 

 

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: Setting Flat Rate Shipping as a percentage of order

@Sunil Patel Thank you, on the old install of the site on 1.7 there was an option to set fixed shipping as a percentage and it was working that way for years until I migrated to 2.

 

See attached screenshot of the old install with that option.Screen Shot 2018-04-27 at 5.51.07 PM.png

Re: Setting Flat Rate Shipping as a percentage of order

Thank you but on the old install of the site on 1.7 there was an option to set fixed shipping as a percentage, see attached screenshot.

It worked that way for years until I migrated to 2.Screen Shot 2018-04-27 at 5.51.07 PM.png

Re: Setting Flat Rate Shipping as a percentage of order

Hello,

You need to create such functionality for Magento 2. I already mention file name, you need to edit file that

Hope it will work in your project. If it will work then mark as solution or give kudoes.

Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer