Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2007
    Posts
    51
    Plugin Contributions
    0

    Default My cloned flat and freeoptions modules don't work

    Hi.

    First of all, sorry for the lengthy explanation, I just want to make it clear.

    I have created copies of flat.php and freeoptions.php shipping modules and renamed them to sp_flat.php and sp_freeoptions.php respectively.

    I have also changed all "flat" and "FLAT" to "sp_flat" and "SP_FLAT" in sp_flat.php,
    and I have changed all "freeoptions" and "FREEOPTIONS" to "sp_freeoptions" and "SP_FREEOPTIONS" in sp_freeoptions.

    Other than that, the files have their original content.

    Then I go to Zen Cart administration and set Shipping Cost 60.00 in sp_flat and Total >= 2000.00 in sp_freeoptions.

    Up until here, everything seems fine, but...

    When I log on to my shop, I do some shopping and after I go to checkout, the original flat and freeoptions (which are still activated) work find, but the new cloned models don't work. After I select one of these new options, the "Next step" button redirects me to the same page and not to the next step

    Does anybody have any idea about what could be wrong?

    The point of having the cloned modules is that I need a "by Courier" shipping method and "by Slovak Postal Service" shipping method, both with freeoptions (but each with different values).

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

    Default Re: Cloned flat and freeoptions modules don't work

    It is your naming convention ...

    sp_flat will clash with flat ...

    use flatsp or spflat without the underscore so all:
    flat become flatsp
    FLAT become FLATSP

    and all will start working for you ...

    The main point is, don't leave flat by itself on either side of the underscore or it gets spliced up and in conflict with the flat.php file ...
    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
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Cloned flat and freeoptions modules don't work

    Note: this is true with freeoptions as well ...

    freeoptionssp or spfreeoptions will correct the issue ...
    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
    Jul 2007
    Posts
    51
    Plugin Contributions
    0

    Default Re: Cloned flat and freeoptions modules don't work

    Thank you very much, I would have never thought that the underscore has so much importance. I'm gonna try it out right now...as if my night wasn't sleepless enough already

    But still, thank you very much

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

    Default Re: Cloned flat and freeoptions modules don't work

    Note: the shipping directory for the modules is autoloading ... this means any file in there loads and you do not want to leave extra copies, backups etc.

    If you have to leave a file copy such as trying to rename a file like flat_sp.php to flat_sp_old.php ... instead call it flat_sp.php_OLD so that the extention is not php ...

    Granted the better thing to do is to not load any files there that cannot be installed ... or you will get errors in the Admin, at the very least ...
    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
    Jul 2007
    Posts
    51
    Plugin Contributions
    0

    Default Re: Cloned flat and freeoptions modules don't work

    Don't worry, I didn't leave any trash behind ;) Your solution works like a dream and my payment and shipping is all set :)

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

    Default Re: My cloned flat and freeoptions modules don't work

    Thanks for the update that everything is now working properly ...

    Good luck with your site ...
    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. v154 Cloned Shipping for 3 modules - various Countries and Costs
    By cuysan in forum Addon Shipping Modules
    Replies: 8
    Last Post: 22 Feb 2016, 11:59 PM
  2. v150 Combine Freeoptions with Flat rate
    By krissyng in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 12 Aug 2013, 02:26 PM
  3. Cloned Flat Rate Not Showing
    By forced in forum Addon Shipping Modules
    Replies: 15
    Last Post: 17 Aug 2010, 05:31 AM
  4. Question on cloned table shipping modules and 1.3.9 upgrade
    By earmsby in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 16 Jun 2010, 03:42 PM
  5. Error with cloned flat module
    By earmsby in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 29 Nov 2006, 04:00 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