Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Posts
    46
    Plugin Contributions
    0

    Default Cloned Table Rate Module "Loops"

    I thought I got all the little spots in the files, but maybe not.

    I took the table.php file in

    includes/modules/shipping/

    and

    includes/languages/english/modules/shipping

    and copied it to table_canada.php

    Then I changed all instances of MODULE_SHIPPING_TABLE* and replaced them with MODULE_SHIPPING_TABLECANADA* preserving the install stuff.

    This seems to work fine. I then set up my zones so you see this Canada rate only if you're in Canada. Awesome.

    EXCEPT - during checkout, you select it and hit continue and it just loops you back to the screen to select a shipping option.

    If I set it up so both table rates are viewable, it still selects the main table.php one, even if the table_canada.php display is chosen. This leads me to believe I have missed a replacement that's important for setting a session variable and it's still using the name or something from the original table.php version so it "bounces" back (without error, BTW) to the page to select the shipping.

  2. #2
    Join Date
    Nov 2005
    Posts
    46
    Plugin Contributions
    0

    Default Re: Cloned Table Rate Module "Loops"

    $this->code = 'table_canada';

    I think this line of code is probably the issue. Will search but meanwhile...

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Cloned Table Rate Module "Loops"

    MODULE_SHIPPING_TABLECANADA*

    Shouldn't this be MODULE_SHIPPING_TABLE_CANADA*? Or was that just a forum typo?

  4. #4
    Join Date
    Nov 2005
    Posts
    46
    Plugin Contributions
    0

    Default Re: Cloned Table Rate Module "Loops"

    As long as MODULE_SHIPPING_TABLECANADA* matches in the module and language file - I think it's fine or should be. Those are (from what I can tell) mappings to the language file. These seem to be working without issue as the text that appears (and price displayed) are correct. When you submit the form, it loops back. This leads me to believe that it's something with the form creation.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Cloned Table Rate Module "Loops"

    table.php does not go to table_canada.php ...

    It will go to: tablecanada.php

    table does not go to table_canada ...

    It will go to tablecanada

    TABLE does not go to TABLE_CANADA ...

    It will go to TABLECANADA

    MODULE_SHIPPING_TABLE_ZONE will not go to MODULE_SHIPPING_TABLE_CANADA_ZONE ...

    It will go to MODULE_SHIPPING_TABLECANADA_ZONE

    The problem is ... table conflicts with table_canada ...

    The solution is ... table does not conflict with tablecanada ...

    NOTE: leave everything that starts with the word: TABLE_ (as in a database table name and not part of the shipping module naming convention so to speak) alone ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Using "table" shipping but need one category to be "Flat Rate"
    By GTHENRY in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 27 Apr 2011, 08:35 PM
  2. How do I change "Table Rate (Best Way)" to "Ground Shipping"?
    By John Vieth in forum General Questions
    Replies: 4
    Last Post: 1 Jul 2010, 10:37 PM
  3. Dublicating the "Table Rate" module
    By NSABaits in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 19 Jun 2009, 03:34 PM
  4. Table Rate Module - Table Method "item"
    By MartynG in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 10 Jun 2009, 06:13 AM
  5. Add "shipping" next to "table rate" on invoice
    By mrmeech in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 12 Jan 2007, 07:54 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