Page 8 of 11 FirstFirst ... 678910 ... LastLast
Results 71 to 80 of 103
  1. #71
    Join Date
    Oct 2005
    Location
    Finland
    Posts
    186
    Plugin Contributions
    1

    Default Re: Shipping tax not added in order confirmation - possible bug??

    Quote Originally Posted by bottyz View Post
    however when a customer pays 'on account' using the invoice mod from the add ons the shipping is once again calculated without tax on the shipping. I can rectify the issue by removing the zone from the shipping module again.
    This one: https://www.zen-cart.com/downloads.php?do=file&id=131 ?

    What happens if you change:
    Code:
    function invoice() {
    into:
    Code:
    function __construct() {
    I don't see what else should be changed in this for 1.5.5, as it doesn't have any zone handling?!

  2. #72
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Shipping tax not added in order confirmation - possible bug??

    Just completed another upgrade from 1.5.4 to 1.5.5a for a client.

    He had that store going for many years without tax issues - until up and including ZC 1.5.4.

    Now, after upgrading to 1.5.5a, the tax was added correctly during the checkout process but was NOT added at the checkout_success page, the order confirmation email and the invoice.

    Applied Dr Byte's fix (post #59) and we are back to normal, the shipping tax now shows correctly on the checkout_success page, the order confirmation email and the invoice.

    So, that adds another (upgraded) store showing the same symptoms as I reported in post #1

  3. #73
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Shipping tax not added in order confirmation - possible bug??

    So, from the reports of others, this symptom only seems to appear in upgraded stores. If one of the upgraders made a mistake in the upgrade then that would be understandable. But, it seems to happen in many upgraded stores as reported here in this thread and it is unlikely that the many different upgraders are making exactly the same mistake.....

    On the other hand, in Wilts's and DrByte's vanilla 1.5.5a installs (ie trying to reproduce the error in a fresh installation) the symptom does not appear.

    So, why the difference in symptoms between an upgraded store and a fresh installation?
    Last edited by frank18; 8 Jul 2016 at 10:54 AM.

  4. #74
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Shipping tax not added in order confirmation - possible bug??

    Suggested "test" would be to install a fresh earlier version of ZC for a version that didn't report the issue, setup with conditions that appear to be causing the issues and then attempt to upgrade and see if the problem persists.

    If the problem exists with that upgrade, compare database dumps of both a fresh install of 1.5.5a and that upgrade. If not, then unfortunately attempt the same database compare between a troubled upgraded cart and fresh ZC 1.5.5a...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #75
    Join Date
    Oct 2005
    Location
    Finland
    Posts
    186
    Plugin Contributions
    1

    Default Re: Shipping tax not added in order confirmation - possible bug??

    Quote Originally Posted by mc12345678 View Post
    Suggested "test" would be...
    +1 to it all ... :)

  6. #76
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Shipping tax not added in order confirmation - possible bug??

    Quote Originally Posted by mc12345678 View Post
    Suggested "test" would be to install a fresh earlier version of ZC for a version that didn't report the issue, setup with conditions that appear to be causing the issues and then attempt to upgrade and see if the problem persists.

    If the problem exists with that upgrade, compare database dumps of both a fresh install of 1.5.5a and that upgrade. If not, then unfortunately attempt the same database compare between a troubled upgraded cart and fresh ZC 1.5.5a...
    Yep, agreed! The starter could be a 1.5.1 or a 1.5.3 version and then upgrade progressively from version to version.
    Last edited by frank18; 8 Jul 2016 at 11:21 AM.

  7. #77
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: Shipping tax not added in order confirmation - possible bug??

    Did some digging.....

    In includes/classes/shipping.php

    ZC versions 1.5.1 and 1.5.4 we find around line 144

    Code:
    $this->notify('NOTIFY_SHIPPING_MODULE_GET_ALL_QUOTES', $quotes_array);

    and in the same (corresponding) file in ZC 1.5.5a around line 176

    Code:
    $this->notify('NOTIFY_SHIPPING_MODULE_GET_ALL_QUOTES', $quotes_array, $quotes_array);

    Is the duplication of , $quotes_array in the 1.5.5a file intended?

  8. #78
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Shipping tax not added in order confirmation - possible bug??

    Quote Originally Posted by frank18 View Post
    Did some digging.....

    In includes/classes/shipping.php

    ZC versions 1.5.1 and 1.5.4 we find around line 144

    Code:
    $this->notify('NOTIFY_SHIPPING_MODULE_GET_ALL_QUOTES', $quotes_array);

    and in the same (corresponding) file in ZC 1.5.5a around line 176

    Code:
    $this->notify('NOTIFY_SHIPPING_MODULE_GET_ALL_QUOTES', $quotes_array, $quotes_array);

    Is the duplication of , $quotes_array in the 1.5.5a file intended?
    Yes, intended. And, unless you're actually using something that gets triggered by that notifier hook, it wouldn't be affecting your shipping. let alone taxes
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #79
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: Shipping tax not added in order confirmation - possible bug??

    Quote Originally Posted by DrByte View Post
    Yes, intended. And, unless you're actually using something that gets triggered by that notifier hook, it wouldn't be affecting your shipping. let alone taxes
    To clarify, the duplication enables backwards compatibility (keeping the $quotes_array as the first, read-only, parameter) but also adds the capability for an observer to modify those values by supplying the second (updateable) parameter containing the $quotes_array.

  10. #80
    Join Date
    Mar 2010
    Location
    Nottingham UK
    Posts
    87
    Plugin Contributions
    1

    Default Re: Shipping tax not added in order confirmation - possible bug??

    Quote Originally Posted by rued View Post
    This one: https://www.zen-cart.com/downloads.php?do=file&id=131 ?

    What happens if you change:
    Code:
    function invoice() {
    into:
    Code:
    function __construct() {
    I don't see what else should be changed in this for 1.5.5, as it doesn't have any zone handling?!
    Hi Rued,

    Sorry for the late reply (I was on holiday in Turkey), and thanks for your help. I found the issue and it wasn't anything to do with the invoice mod. It actually turned out to be a problem with the wp_checkout_proccess.php file with the worldpay module.

    The above file is mostly a duplicate of the first part of the checkout_process.php file, which Dr Byte has suggested needs the shipping / order lines swapping round. I've swapped these round in the worldpay file and all seems well.

    Thanks again.

 

 
Page 8 of 11 FirstFirst ... 678910 ... LastLast

Similar Threads

  1. Can not get tax to be added to order total
    By harleyhar in forum General Questions
    Replies: 1
    Last Post: 28 Jul 2011, 12:10 AM
  2. Tax not being added to shipping
    By hamid84 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 4
    Last Post: 13 Nov 2010, 11:22 PM
  3. Sales tax not being added to order
    By danilyn22 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 Oct 2009, 07:12 PM
  4. bug in Canada Post shipping module? - no tax added
    By ptalindstrom in forum Addon Shipping Modules
    Replies: 4
    Last Post: 14 Jan 2008, 10:31 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR