Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2005
    Posts
    97
    Plugin Contributions
    0

    Multiple Flat Rates Shipping

    I want to have the following flats rate:

    UPS Ground: $9.95
    UPS 2nd Air: $14.95
    UPS Overnite: $24.95


    I tried to duplicate the flat rate modules by following the suggestion from this thread, http://www.zen-cart.com/forum/showth...iple+flat+rate, but it game me this error message in the admin:

    Warning: main(/home/rithlim/public_html/shopping/includes/languages/english/modules/shipping/flat2days.php): failed to open stream: No such file or directory in /home/rithlim/public_html/shopping/admin/modules.php on line 188

    Warning: main(/home/rithlim/public_html/shopping/includes/languages/english/modules/shipping/flat2days.php): failed to open stream: No such file or directory in /home/rithlim/public_html/shopping/admin/modules.php on line 188

    Warning: main(): Failed opening '/home/rithlim/public_html/shopping/includes/languages/english/modules/shipping/flat2days.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rithlim/public_html/shopping/admin/modules.php on line 188

    How can I duplicate the flat rate module?

    Thank you,
    Last edited by gems14k; 27 May 2006 at 10:58 PM.

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

    Default Re: Multiple Flat Rates Shipping

    make sure that when you copied the files:

    /includes/modules/shipping/flat.php
    /includes/languages/english/modules/shipping/flat.php

    to the files:
    /includes/modules/shipping/flat2days.php
    /includes/languages/english/modules/shipping/flat2days.php


    That you did the replacements case sensative:
    flat becomes flat2days

    FLAT becomes FLAT2DAYS

    And make sure that you do not have "extra" files left in the /includes/modules/shipping directory as they autoload ...
    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!

  3. #3
    Join Date
    Jun 2006
    Posts
    7
    Plugin Contributions
    0

    Default Re: Multiple Flat Rates Shipping

    I have made the changes Ajeh suggested, but I have a different sort of error and I'm sure of the steps to take to fix it.

    Fatal error: Cannot redeclare class flat in /home/outervis/public_html/sunmark/cart/includes/modules/shipping/flat2.php on line 23

    Can someone help me get past this? I am working toward the same goal as gems14k where I require multiple flat rates shipping depending on zone.

    Thank you in advance for you assistance.

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

    Default Re: Multiple Flat Rates Shipping

    Sounds like you made an error on the replacements of the variables/constants ...

    flat becomes flat2

    FLAT becomes FLAT2
    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!

  5. #5
    Join Date
    Mar 2006
    Posts
    12
    Plugin Contributions
    0

    Default Re: Multiple Flat Rates Shipping

    I am having the same problem, did anyone figure out to work this out.

    I tried these 2 solutions:

    1- replace all flat by flat1day and all FLAT by FLAT1DAY

    2- just copy and paste de flat.php and rename it flat1day.php without modifying the file.

    Result is the same : cannot redeclare flat1day.... line 23

    Help?

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

    Default Re: Multiple Flat Rates Shipping

    Change flat to oneday and FLAT to ONEDAY ...

    Now does it like it?
    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!

  7. #7
    Join Date
    May 2005
    Posts
    110
    Plugin Contributions
    0

    Default Re: Multiple Flat Rates Shipping

    that still doesnt work, im having the exact same issue??

    Any help?

  8. #8
    Join Date
    May 2005
    Posts
    110
    Plugin Contributions
    0

    Default Re: Multiple Flat Rates Shipping

    figured it out. Make sure u dont put the new shipping module in your overrite directory because it doesnt have anything to overwrite :)

  9. #9
    Join Date
    Mar 2006
    Posts
    12
    Plugin Contributions
    0

    Default Re: Multiple Flat Rates Shipping

    Quote Originally Posted by emtecmedia
    figured it out. Make sure u dont put the new shipping module in your overrite directory because it doesnt have anything to overwrite :)
    What's the overwrite directory?

  10. #10
    Join Date
    Mar 2005
    Location
    Pennsylvania, USA
    Posts
    43
    Plugin Contributions
    0

    Default Re: Multiple Flat Rates Shipping

    I don't like bringing threads back from the dead, but I've got everything working from this thread as far as it went. Now I want to get everything inside the same label, rather than having each option inside it's own label. Will this be an easy fix, or will I be basically writing a new module? Thanks, and apologies for the thread necromancy.

    I'm two weeks from going live with the site. Looks beautiful aside from little tweaks like this one.

 

 

Similar Threads

  1. v151 US and International Shipping Flat Rates plus calculated shipping rates.
    By Rick5150 in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 22 Jan 2013, 10:48 PM
  2. Multiple Flat Shipping rates
    By SKlos in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 16 Nov 2010, 04:50 PM
  3. Multiple flat rates
    By mithunden in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 22 Feb 2009, 11:05 PM
  4. Multiple flat shipping rates
    By nebbuchadnezzar in forum Built-in Shipping and Payment Modules
    Replies: 32
    Last Post: 18 Oct 2007, 05:15 AM
  5. Multiple flat rates for shipping
    By jmouse in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 18 May 2007, 08:07 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