Page 3 of 9 FirstFirst 12345 ... LastLast
Results 21 to 30 of 89
  1. #21
    Join Date
    Oct 2008
    Location
    Hornell, NY
    Posts
    334
    Plugin Contributions
    1

    Default Re: Tips on cloning Table Rate shipping module

    I fixed most of the errors, this is the only one I can't figure out

    the fine /includes/classes/shipping.php on line 56

    Error:
    Code:
    [13-Nov-2008 13:40:11] PHP Fatal error:  Class 'table2' not found in /home/tms/public_html/includes/classes/shipping.php on line 56
    I went to that line and copied lines 53-59. Line 56 has nothing there, not sure what to add there for table2

    PHP Code:
        if (defined('MODULE_SHIPPING_INSTALLED') && zen_not_null(MODULE_SHIPPING_INSTALLED)) {

          
    $this->modules explode(';'MODULE_SHIPPING_INSTALLED);



          
    $include_modules = array(); 

  2. #22
    Join Date
    Oct 2008
    Location
    Hornell, NY
    Posts
    334
    Plugin Contributions
    1

    Default Re: Tips on cloning Table Rate shipping module

    Quote Originally Posted by chris32882 View Post
    I fixed most of the errors, this is the only one I can't figure out

    the fine /includes/classes/shipping.php on line 56

    Error:
    Code:
    [13-Nov-2008 13:40:11] PHP Fatal error:  Class 'table2' not found in /home/tms/public_html/includes/classes/shipping.php on line 56
    I went to that line and copied lines 53-59. Line 56 has nothing there, not sure what to add there for table2

    PHP Code:
        if (defined('MODULE_SHIPPING_INSTALLED') && zen_not_null(MODULE_SHIPPING_INSTALLED)) {

          
    $this->modules explode(';'MODULE_SHIPPING_INSTALLED);



          
    $include_modules = array(); 
    Tried to add this to the last post, I wasn't fast enough...


    I also get Fatal error: Cannot redeclare class table in /home/tms/public_html/includes/modules/shipping/table2.php on line 393

    in Admin >> Modules >> Shipping

    I checked out the file the line has just a }
    Last edited by chris32882; 13 Nov 2008 at 08:55 PM. Reason: updating

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

    Default Re: Tips on cloning Table Rate shipping module

    Sounds like you have two files with:
    class table

    in them ... and there can be only one ...

    Try going to the Tools ... Developers Tool Kit ...

    In the bottom input box put:
    class table

    and select Catalog from the dropdown then click search ...

    What are the paths to the files that this appear in?
    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: v1.5.5]
    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. #24
    Join Date
    Oct 2008
    Location
    Hornell, NY
    Posts
    334
    Plugin Contributions
    1

    Default Re: Tips on cloning Table Rate shipping module

    Quote Originally Posted by Ajeh View Post
    Sounds like you have two files with:
    class table

    in them ... and there can be only one ...

    Try going to the Tools ... Developers Tool Kit ...

    In the bottom input box put:
    class table

    and select Catalog from the dropdown then click search ...

    What are the paths to the files that this appear in?
    /includes/classes/boxes.php

    These 2 must be the problem, not sure what to change to have them on their own


    /includes/modules/shipping/table.php


    and

    /includes/modules/shipping/table2.php

  5. #25
    Join Date
    Oct 2008
    Location
    Hornell, NY
    Posts
    334
    Plugin Contributions
    1

    Default Re: Tips on cloning Table Rate shipping module

    every reference of table and TABLE I changed to table2 and TABLE2

    except the ones that were "TABLE_CONFIGURATION"

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

    Default Re: Tips on cloning Table Rate shipping module

    This is also a database table constant:
    TABLE_ZONES_TO_GEO_ZONES

    To know all of the constants for the database tables look at:
    /include/database_tables.php

    NOTE: cloning table.php to table2.php does work ... you just have to be careful ...
    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: v1.5.5]
    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!

  7. #27
    Join Date
    Oct 2008
    Location
    Hornell, NY
    Posts
    334
    Plugin Contributions
    1

    Default Re: Tips on cloning Table Rate shipping module

    Quote Originally Posted by Ajeh View Post
    This is also a database table constant:
    TABLE_ZONES_TO_GEO_ZONES

    To know all of the constants for the database tables look at:
    /include/database_tables.php

    NOTE: cloning table.php to table2.php does work ... you just have to be careful ...

    hehe yeah I'm not doing too much damage yet...thats a good thing, I still have the back up files to fall back on incase something goes wrong.

    I'll take a look of that and make sure I didn't change that one

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

    Default Re: Tips on cloning Table Rate shipping module

    Just be sure you are doing case sensitive replacements and that the database table names are never touched ...

    No sweat ...
    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: v1.5.5]
    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!

  9. #29
    Join Date
    Oct 2008
    Location
    Hornell, NY
    Posts
    334
    Plugin Contributions
    1

    Default Re: Tips on cloning Table Rate shipping module

    I went through database_tables.php and made sure no more table constants are overitten on table2.php.

    I still recieve the error unfortunally

  10. #30
    Join Date
    Oct 2008
    Location
    Hornell, NY
    Posts
    334
    Plugin Contributions
    1

    Default Re: Tips on cloning Table Rate shipping module

    For the most part, it is working, I copied the code on the first page of this thread and used that instead of editing the code and its showing both tables fine in admin..

    but its showing MODULE_SHIPPING_ZONES_TEXT_TITLE

    for the zones module at the bottom for some reason


 

 
Page 3 of 9 FirstFirst 12345 ... LastLast

Similar Threads

  1. Cloning the Flat Rate Shipping Module
    By jo_h1971 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 16 Oct 2009, 12:11 PM
  2. cloning table rate crushed
    By deadheat1 in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 16 Jul 2008, 02:01 AM
  3. Clone a shipping module or define a new shipping attribute under table rate module?
    By meeven in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 4 Sep 2007, 04:56 PM
  4. Cloning Table Rate mode
    By sylsau in forum Addon Shipping Modules
    Replies: 5
    Last Post: 16 Dec 2006, 02:16 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

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