Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2008
    Posts
    13
    Plugin Contributions
    0

    Default Insert Values from Cloned Module into Database

    I have cloned storepickup shipping modules to accommodate multiple possible pickup locations for a business that only sends orders to specific locations for COD pickup. The newly cloned storepickups show up ok at checkout but their values do not get put into the database once the order is completed.

    The only values that get inserted into the DB are the values of the original storepickup (shipping_method and shipping_module_code). Without the orginal storepickup as an option, the checkout stalls at step1. Even with the original storepickup present as an option, when another location is selected the same original values always get inserted. Thus there is no way for the business to determine which of several delivery locations is the one where the order should be sent.

    I have been through the order.php file and the cloned versions of storepickup.php but cannot find where to make changes to fix this problem. Any help in resolving this would be greatly appreciated.

  2. #2
    Join Date
    Jul 2008
    Posts
    13
    Plugin Contributions
    0

    Default Re: Insert Values from Cloned Module into Database

    Oops! I'm a PHP Newbie. I created my cloned files using _ in my code (richmond_storepickup). When I removed the _ (richmondstorepickup), it seems to work fine with actual DB values inserted as desired.
    Last edited by OrganicMan; 26 Jul 2008 at 12:03 PM.

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

    Default Re: Insert Values from Cloned Module into Database

    Thanks for the update on how you fixed this ...

    The current method was taking the storepickup and "hearing" that in the "richmod_storepickup" and befuddling things ... removing the underscore worked around that issue ...

    This is the same thing that would happen with something like flat.php and flat_fred.php and the solution would be flatfred.php ...
    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. insert code into module file
    By quick1 in forum General Questions
    Replies: 1
    Last Post: 5 May 2011, 03:40 AM
  2. How do I insert my iframe payment module into the cart and override existing pmt proc
    By jonasrullo in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 23 Sep 2009, 11:09 PM
  3. Replies: 2
    Last Post: 23 Jul 2009, 12:59 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