Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2010
    Posts
    20
    Plugin Contributions
    0

    Default Cloning Shipping Modules

    Is there a technical reason to rename the class and function names when you clone a shipping module, or because it's easier (and safer) to rename everything the same? I wasn't sure if the class and function names are local or used outside of the individual module.

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

    Default Re: Cloning Shipping Modules

    The renaming prevents issues ... example a clone of Flat Rate flat would use:
    flat.php goes to flat2.php
    flat goes to flat2
    FLAT goes to FLAT2


    Or something like:
    flat.php goes to flatusa.php
    flat goes to flatusa
    FLAT goes to FLATUSA

    as long as you follow case sensitive renaming you should be fine ...
    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!

  3. #3
    Join Date
    Feb 2010
    Posts
    20
    Plugin Contributions
    0

    Default Re: Cloning Shipping Modules

    I followed your instructions from an earlier post because I wanted to have a freeoptions module with price > x and weight < x, and only for the lower 48 states. I did see why changing both comparisons in the final check from OR to AND caused an issue. If the value fields are blank for both fields for items, it defaults to false which works fine for an OR but not an AND. Another tip, if you use an editor like UltraEdit, you can set the Preserve Case option. This allows a case insensitive search, with the replace matching the case of the found value.

 

 

Similar Threads

  1. a really stupid question about cloning order total modules
    By delia in forum Contribution-Writing Guidelines
    Replies: 0
    Last Post: 11 Aug 2011, 02:04 PM
  2. Shipping module cloning
    By jmp04 in forum Built-in Shipping and Payment Modules
    Replies: 21
    Last Post: 11 Dec 2010, 02:36 PM
  3. Cheapest Method selection not working right since cloning modules
    By SweetEmotions in forum Addon Shipping Modules
    Replies: 0
    Last Post: 5 Oct 2010, 06:38 PM
  4. Cloning Shipping Modules
    By lhhgbh in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 26 Sep 2006, 03:04 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