Re: Shipping Rates in Cart [support thread]
nope still not working correct, the fix above fixed the problem with displaying the shopping cart but when you go to check out i get the following error
Fatal error: Cannot redeclare class order in /home/public_html/store/includes/classes/order.php on line 987
if i turn the sidebox shipping off, then the problem goes!!!
Re: Shipping Rates in Cart [support thread]
Yes I can replicate this (although with less obvious symptoms). I don't have a fix for it as of yet. I'll see if I can figure it out but what I may end up doing is, in the next version, disabling the sidebox from the shopping cart page onwards.
Re: Shipping Rates in Cart [support thread]
ive just installed the mod on a new fresh install of 1.3.8a and for somereason its displaying the shipping cost without VAT
if i log in as a UK customer it shows the VAT on the mod but not when not loged in.
im using the flat rate shipping modual.
any ideas why its not added the VAT when not logged in?? products are showing inc vat
Re: Shipping Rates in Cart [support thread]
kitcorsa.. how did you get the VAT to display on this module? I'm having trouble finding out how to do this.
Re: Shipping Rates in Cart [support thread]
eerrrmmm i cant remember but i think it was a localisation problem and vat settings not correct, not a problem with the contribution.
Re: Shipping Rates in Cart [support thread]
Quote:
Originally Posted by
kitcorsa
eerrrmmm i cant remember but i think it was a localisation problem and vat settings not correct, not a problem with the contribution.
Ah, ok.
It's just that I'm trying to get the total displayed with VAT added in on this module. I just can't work out how it's done!
Thanks for your help anyway :smile:
Re: Shipping Rates in Cart [support thread]
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:
PHP Code:
$sric_total = $cartSricTotal + $sric_shipping_simple;
Directly below it, add these two lines:
PHP Code:
$vat = ($sric_total / 100) * 15;
$sric_total = $sric_total + $vat;
Re: Shipping Rates in Cart [support thread]
Quote:
Originally Posted by
Steven300
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:
PHP Code:
$sric_total = $cartSricTotal + $sric_shipping_simple;
Directly below it, add these two lines:
PHP Code:
$vat = ($sric_total / 100) * 15;
$sric_total = $sric_total + $vat;
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!
Re: Shipping Rates in Cart [support thread]
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 :smile:
Re: Shipping Rates in Cart [support thread]
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