eerrrmmm i cant remember but i think it was a localisation problem and vat settings not correct, not a problem with the contribution.
eerrrmmm i cant remember but i think it was a localisation problem and vat settings not correct, not a problem with the contribution.
I haven't tested this yet and it may not work for downloadable or virtual products.
In includes/templates/your_template/templates/tpl_shopping_cart_default.php
Find:
Directly below it, add these two lines:PHP Code:$sric_total = $cartSricTotal + $sric_shipping_simple;
PHP Code:$vat = ($sric_total / 100) * 15;
$sric_total = $sric_total + $vat;
Mods: Admin Activity Report || PO Box Ban || Empty Cart Manager || Autoresponder+ || Zip Validator || Desktop Data || SRiC
Hey steven, thanks for the reply.
I was considering heading that direction (manually working out the VAT deduction) but it causes some issues.
If I implement that code, the total displayed on the mod differs from the total displayed in the cart, by a penny.
For example, the order I'm testing right now, the mod displays it like - Total: £35.08, but the Zen shopping cart displays it like Total: £35.07
I'm guessing ZC uses a different method of rounding up the sum.
Thanks though!
RIGHT, I've sorted it.
It turns out that PHP5 (which we run locally) rounds up numbers slightly different to PHP4 (which we run on our shared servers).
So essentially, your way worked fine, but only in PHP4. In PHP5, it misses a penny out.
Thanks for your help, this has been an immensely helpful module![]()
nice little mode, pretty easay to install however I am getting the following error at the bottom of the cart page (using 1.3.8a zen)
Fatal error: Cannot redeclare class shipping in /store/includes/classes/shipping.php on line 178
any thoughts on fixing this?
thanks
john
ok well I solved it by setting the shipping estimator display settings to 0.