Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2009
    Posts
    4
    Plugin Contributions
    0

    Default [Done v1.3.9] Bug in ot_shipping prevents tax_basis flag from working correctly

    Sorry to bother you because I am most probably wrong and this is not a bug, I thought I better post it just in case. I haven't found any post on this subject.

    In Zencart 1.3.8, ot_shipping.php, at line 61, we have:
    PHP Code:
    if (!defined($GLOBALS[$module]->tax_basis)) { 
    The thing is, left like that, no matter what I choose in the admin, I always get the default "Store" basis for shipping tax calculation, because the property always evaluates as not defined.

    I changed this for:
    PHP Code:
    if (!isset($GLOBALS[$module]->tax_basis)) { 
    And it seems to work as it should. Am I doing somehting wrong?

  2. #2
    Join Date
    Jan 2004
    Posts
    58,243
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Bug in ot_shipping at: if (!defined($GLOBALS[$module]->tax_basis)) ?

    You're correct. The change you suggested is appropriate.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  3. #3
    Join Date
    Jan 2007
    Location
    Tooele, UT
    Posts
    4
    Plugin Contributions
    0

    Default Re: [Done v1.3.9] Bug in ot_shipping prevents tax_basis flag from working correctly

    What is the full path to that file?
    Just another squirrel trying to get a nut :)

  4. #4
    Join Date
    Jan 2004
    Posts
    58,243
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: [Done v1.3.9] Bug in ot_shipping prevents tax_basis flag from working correctly

    /includes/modules/order_totals/ot_shipping.php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  5. #5
    Join Date
    Jan 2007
    Location
    Tooele, UT
    Posts
    4
    Plugin Contributions
    0

    Default Re: [Done v1.3.9] Bug in ot_shipping prevents tax_basis flag from working correctly

    Oh you beat me to it :)

    Thank you.
    Just another squirrel trying to get a nut :)

  6. #6
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: [Done v1.3.9] Bug in ot_shipping prevents tax_basis flag from working correctly

    I see that line of code at line 44 not 61. I have not modified this file. I am using ZC v1.3.8a. Am I in the wrong place or missing something?

    Sawhorse
    ZC 1.3.8a; Addons: Admin Profiles, Ty Package Tracker; Swap Images via MouseOver or Click, Smart Backgrounds; Printable Price List; CSS buttons; Contact Us - Add Subject; Template: Self Constructed; Site: http://sawhorsejewelry.com

  7. #7
    Join Date
    Jan 2004
    Posts
    58,243
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: [Done v1.3.9] Bug in ot_shipping prevents tax_basis flag from working correctly

    Line 44 is correct.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  8. #8
    Join Date
    Oct 2007
    Location
    Kentucky - USA
    Posts
    428
    Plugin Contributions
    0

    Default Re: [Done v1.3.9] Bug in ot_shipping prevents tax_basis flag from working correctly

    Thank you!
    ZC 1.3.8a; Addons: Admin Profiles, Ty Package Tracker; Swap Images via MouseOver or Click, Smart Backgrounds; Printable Price List; CSS buttons; Contact Us - Add Subject; Template: Self Constructed; Site: http://sawhorsejewelry.com

 

 

Similar Threads

  1. Error prevents shipping modules from working
    By zgambitx in forum General Questions
    Replies: 2
    Last Post: 13 Nov 2008, 03:17 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
  •