How to set shipping cost as a % of total cost?

rvakili

No avatar

2007-03-28 19:21

Hi Guys,

We charge 5 % of total price as shipping cost. How do I go about adding this to the script?

With Many Thanks.

» Quick.Cart v2.x

treewood (OpenSolution)

Avatar: treewood

2007-03-29 08:39

rvakili - hmm... much work. I will only give You advice. Too much to give You complete solution. You must edit:
1. core/orders.php, function listBasket(). There is variable: $aList['fSummary'] ... from this variable count cost of shipping
2. templates/orders_delivery.tpl, block LIST_FOOT - put this cost here
3. Delete select courier from the same file and this ,Array( 'iCourier', 'simple', '$lang[Choose_courier]' ) too if You dont want to have courier
4. templates/orders_summary.tpl You must delete courier and give some costs
5. This summary cost generates here: actions_client/orders.php here: $aData['fSummary'] = tPrice( $aData['fCourierPrice'] + $aList['fSummary'] );
Count cost from this variable and put to templates/orders_summary.tpl

You must figure out how to do it ... it is not easy

rvakili

No avatar

2007-04-03 05:47

Thanks treewood.

I combine the tax and shipping cost as one fee. This will take care of my shipping. Thanks again.

Back to top
about us | contact