Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Sep 2007
    Posts
    35
    Plugin Contributions
    0

    Default clone flat/ store pickup

    hi. a number of people have asked the same question I have, but I can't find any result:

    I need to offer customers 3 static store pickup locations. I have the store pickup module installed, and from what I gather, i need to "clone flat.php".

    But I have searched for "clone flat" and "clone flat.php" as well as variants including "pickup" and "store pickup" and can't seem to come up with anything.

    Could someone direct me to a place that talks about how to clone this file to best accomplish this or simply tell me how (I know that's less likely). I've also searched the web, and it seems clear there aren't any modules that accomplish this either.

    Thank you, I'm sure its very annoying having users ask questions you feel you've answered, but I've honestly tried to find this answer with no success.

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

    Default Re: clone flat/ store pickup

    Cloning a shipping module is not difficult, you just need to be consistant ...

    To clone Flat Rate flat Shipping Module you would need to copy the two files that make the Flat Rate flat shipping module to new names ...

    Let's say you want to call the new shipping module: flatfred

    You would copy the files:
    /includes/modules/shipping/flat.php
    /includes/languages/english/modules/shipping/flat.php

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

    Then, you need to edit the two files and all instances of the word:
    flat becomes flatfred
    FLAT becomes FLATFRED

    You will see things like:
    MODULE_SHIPPING_FLAT_TEXT_TITLE

    so that would change to:
    MODULE_SHIPPING_FLATFRED_TEXT_TITLE

    or things like:
    class flat {

    which becomes:
    class flatfred {

    Once you have edited your new files and changed the keyword flat and FLAT to flatfred and FLATFRED ... you can load them to your site and Install them ...
    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 2007
    Posts
    35
    Plugin Contributions
    0

    Default Re: clone flat/ store pickup

    thank you. That response was awesome- I'm going to give it a whirl right now.

  4. #4
    Join Date
    Sep 2007
    Posts
    35
    Plugin Contributions
    0

    Default Re: clone flat/ store pickup

    well, 2 issues.

    1- when i did that, I got this:
    Warning: reset() [function.reset]: Passed variable is not an array or object in admin/modules.php on line 278

    Warning: Variable passed to each() is not an array or object in admin/modules.php on line 279

    2- shouldn't I be cloning the storepickup.php instead of the flat.php?

    again, end goal is that customers are able to choose from 3 different store pickup locations.

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

    Default Re: clone flat/ store pickup

    flat.php would be best ...

    storepickup.php is technically hardcoded for that module and you are better off cloning flat.php and changing the text ... otherwise, you would need to get into the shipping class to make changes ...

    As to the error on the modules.php ... sounds like you have issues with the code you cloned ...

    First, try to delete the new modules from the server ... does it correct the error?

    If so, load 1 set of the cloned files ... does it work or break again ...

    If it breaks again, I would start with a clean flat.php and copy to your cloned filenames and start over ...
    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 2008
    Posts
    27
    Plugin Contributions
    0

    Default Re: clone flat/ store pickup

    Hi! I received the same errors:

    Warning: reset(): Passed variable is not an array or object in html/Store/admin/modules.php on line 278

    Warning: Variable passed to each() is not an array or object in html/Store/admin/modules.php on line 279

    after trying to install a cloned Table Rate Shipping module in admin. When I removed the new mod the error was still there. I tested the site and the old shipping that I was using worked fine, but I still see the error in Admin.

    Any thoughts?

    Thank you!
    Brad

  7. #7
    Join Date
    Feb 2008
    Posts
    27
    Plugin Contributions
    0

    Default Re: clone flat/ store pickup

    Okay... update. I put the new cloned mod back in and it works fine. Thanks!
    Brad

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

    Default Re: clone flat/ store pickup

    Sounds as if you may have had the code in the language directory and reloading it put the files right again ...
    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!

  9. #9
    Join Date
    Jan 2008
    Posts
    51
    Plugin Contributions
    0

    Default Re: clone flat/ store pickup

    Hi guys

    I need to do the same thing - well have 2 flat rates, one at a standard rate, and one for 'next rate'.

    I'd already cloned the flat.php files ( to nextday.php ) and they show up in the admin and on Google checkout.

    However, I can't set them to two different prices - when I update the price of one it has the same affect on the other (as well as the sort order)...

    Any ideas ?

    Thanks

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

    Default Re: clone flat/ store pickup

    This sounds like something did not get fully cloned properly ...

    Do a search on:
    clone flat
    clone item

    and read through the descriptions on how to clone these modules ...

    Also, try REMOVE, INSTALL and Configure them again to make sure you don't have extra copies of the data loaded that might be conflicting ...
    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!

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v150 Flat Rate Shipping Clone
    By laurelsstitchery in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 22 Feb 2012, 02:02 AM
  2. clone flat
    By arbmil in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 30 Nov 2011, 12:51 AM
  3. Flat Clone shipping module
    By Ms_X in forum Addon Shipping Modules
    Replies: 0
    Last Post: 24 Oct 2010, 03:57 PM
  4. flat rate + store pickup = no radio buttons
    By r€nato in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 26 Aug 2009, 05:27 PM
  5. Store Pickup still charges based on Flat Rate, not $0 as configured???
    By juno in forum Managing Customers and Orders
    Replies: 2
    Last Post: 6 May 2008, 03:53 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