Is this duable profit vs free shipping

Posts: 104
Joined: 01/11/2008

After doing some reading about e commerce shipping I came up with an idea although I don't know how feasible this is.

Would it be possbible to write a module which would calculate the amount of profit in each cart after shipping charges and if its say 25%+ profit on all/one item then shipping would be free.

Arek

Posts: 891
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

I think this should be easy using the Workflow-ng condition that lets you execute PHP code - your code would loop over products in the order and sum ($sell_price-$cost) then divide by total $sell_price to get the markup and return true/false based on whether the markup exceeds your limit.

--

<tr>.

Posts: 104
Joined: 01/11/2008

But I guess then it would need to get the shipping quote and subtract it from the the profit margin. Then if its still 25%+ it would say "You qualified for free shipping"