Delivery costs depending on order total price?

wallace

No avatar

2006-01-25 12:02

Has someone a working example on how to link the delivery costs to the total amount of the order?

We want something like:
If subtotal > = 100 NO delivery costs
If subtotal <100: add 2.50 to total costs

automatically....not with the use of a select courier of the user.

Thanks a lot!

wallace

No avatar

2006-01-25 16:45

I tried it with a trick... or kinda...
Using qc loaded from wizzud btw.
- changed line 156 in plugin/taxanddiscount/taxtanddiscount.php to

 $aBasket['fDiscount'] = ($fDR>0) ? tprice( + $fDR ) : tprice(0);



and in the config/general made 2 arrays:

$config['discount_rates'] = array( array( 1, 1, 2.5 ), array( 100, 1, 0,0 ) );

And Edited the templates a bit.

ALl seems to work well except that once in a while when i order something below 100 i get the error from TaxAndDiscount:
The Tax & Discount module encountered a problem when checking costs.

Any thoughts on this??

Thanks!!



wallace

No avatar

2006-01-25 17:33

i did not find a fix really... just switched off the special TaXandDiscount check...

Back to top
about us | contact