Results 1 to 10 of 23

Hybrid View

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

    Default Re: Help cloning table module

    You are most welcome ... thanks for posting back the results ...
    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!

  2. #2
    Join Date
    Jan 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Help cloning table module

    I'm using the above code and have managed to clone table once successfully.

    I'd like to clone it again, so that I have 3 table shipping modules. However trying the 3rd clone gives me the following error message:

    Code:
    1062 Duplicate entry 'MODULE_SHIPPING_TABLE_TAX2_BASIS' for key 2
    in:
    [insert into zen_configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Tax Basis', 'MODULE_SHIPPING_TABLE_TAX2_BASIS', 'Shipping', 'On what basis is Shipping Tax calculated. Options are
    Shipping - Based on customers Shipping Address
    Billing Based on customers Billing address
    Store - Based on Store address if Billing/Shipping Zone equals Store zone', '6', '0', 'zen_cfg_select_option(array(\'Shipping\', \'Billing\', \'Store\'), ', now())]
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
    This appears after I click "Install" in the admin page on the new cloned table module.

    Help?????

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

    Default Re: Help cloning table module

    The constants are named as:
    MODULE_SHIPPING_TABLE_TEXT_TITLE

    The clone needs to use:
    MODULE_SHIPPING_TABLESOMETHING_TEXT_TITLE

    You are using:
    MODULE_SHIPPING_TABLE_SOMETHING_TEXT_TITLE

    So what happens is there is a conflict on table vs table_something as the table is within table_table

    but ...

    tablesomething is not within table_table

    or TABLESOMETHING_ is not within TABLE_

    So ... you need to use a naming convention without the conflict ...

    Just as if you cloned flat.php ...

    flatsomething not flat_something
    FLATSOMETHING not FLAT_SOMETHING

    Got all that?
    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!

  4. #4
    Join Date
    Jan 2007
    Posts
    9
    Plugin Contributions
    0

    Default Re: Help cloning table module

    Dammit!

    It's so obvious when I look at it, I don't know why I didn't fix it on my own. Its the only place I didn't use the right naming convention.

    Thanks!

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

    Default Re: Help cloning table module

    Most welcome ... glad that this could help you ...
    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!

  6. #6
    Join Date
    Feb 2007
    Posts
    37
    Plugin Contributions
    0

    Default Re: Help cloning table module

    I'm dumb apparently. I made sure the case sensitive thing was ok and now it loads the shipping mods table, until it gets to the new one. Now I get this:

    1146 Table 'lecart.OVERNIGHT_CONFIGURATION' doesn't exist
    in:
    [select configuration_value from OVERNIGHT_CONFIGURATION where configuration_key = 'MODULE_SHIPPING_OVERNIGHT_STATUS']
    If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

    Any help would be appreciated.

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

    Default Re: Help cloning table module

    Looks like you replaced a few too many TABLE ...

    There are also references to the database tables which use the word TABLE in them ... and those do not get changed ...
    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. Tips on cloning Table Rate shipping module
    By shirster in forum Built-in Shipping and Payment Modules
    Replies: 88
    Last Post: 2 Dec 2010, 10:41 AM
  2. Problem cloning table shipping
    By earmsby in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 11 Mar 2010, 08:21 PM
  3. Help building/cloning Shipping module for API
    By danstever in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 29 Feb 2008, 04:17 PM
  4. cloning table module problems
    By recordshow in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 28 Nov 2006, 02:10 AM
  5. cloning the shipping module - table
    By drmad in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 20 Oct 2006, 08:11 PM

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