Results 1 to 10 of 96

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Sep 2007
    Location
    Manchester, England
    Posts
    168
    Plugin Contributions
    0

    Default Re: Shipping Rates in Cart [support thread]

    Quote Originally Posted by kitcorsa View Post
    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

  3. #3
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default 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

  4. #4
    Join Date
    Sep 2007
    Location
    Manchester, England
    Posts
    168
    Plugin Contributions
    0

    Default Re: Shipping Rates in Cart [support thread]

    Quote Originally Posted by Steven300 View Post
    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!

  5. #5
    Join Date
    Sep 2007
    Location
    Manchester, England
    Posts
    168
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Mar 2009
    Posts
    57
    Plugin Contributions
    0

    Default 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

  7. #7
    Join Date
    Mar 2009
    Posts
    57
    Plugin Contributions
    0

    Default Re: Shipping Rates in Cart [support thread]

    ok well I solved it by setting the shipping estimator display settings to 0.

 

 

Similar Threads

  1. Add Shipping Telephone Support Thread
    By JTheed in forum Addon Admin Tools
    Replies: 31
    Last Post: 4 Sep 2018, 11:14 AM
  2. Multiple Zone Rates Support Thread
    By totalsam in forum Addon Shipping Modules
    Replies: 54
    Last Post: 24 Feb 2015, 03:34 PM
  3. Replies: 29
    Last Post: 24 Sep 2014, 09:59 PM
  4. Empty Cart Manager [support thread]
    By Steven300 in forum All Other Contributions/Addons
    Replies: 49
    Last Post: 26 May 2010, 10:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg