Thread: Cart

Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    red flag Cart

    Hi, I've customised my cart so that it has two text entry boxes, one for delivery instructions and the other for gift message. Problem is that I cannot get the delivery instructions box in step 2 of the cart to collect the information from the delivery instructions box in step 2.

    Does anybody have any suggestions?

    See the attachment.

    Thanks


    Nick
    Attached Images Attached Images  

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

    Default Re: Cart

    Did you use the built in comment for one of those or are both new?
    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 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    red flag Re: Cart

    I edited tpl_checkout_shipping_default.php and tpl_checkout_payment_default.php

    In tpl_checkout_shipping_default.php I copied the following piece of code:

    <fieldset>
    <legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
    <?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
    </fieldset>

    Then made a duplicate of this code although edited it for the delivery instructions. See below:

    <fieldset>
    <legend><?php echo TABLE_HEADING_DELIVERY_INSTRUCTIONS; ?></legend>
    <?php echo zen_draw_textarea_field('delivery', '45', '3'); ?>
    </fieldset>


    Then in tpl_checkout_payment_default.php more or less the same but ended up as follows:

    <fieldset class="shipping" id="comments">
    <legend><?php echo TABLE_HEADING_COMMENTS; ?></legend>
    <?php echo zen_draw_textarea_field('comments', '45', '3'); ?>
    </fieldset>

    <fieldset class="shipping" id="delivery">
    <legend><?php echo TABLE_HEADING_DELIVERY_INSTRUCTIONS; ?></legend>
    <?php echo zen_draw_textarea_field('delivery', '45', '3'); ?>
    </fieldset>

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

    Default Re: Cart

    Go do a search in the Tools ... Developers Tool Kit ... for the word:
    comments

    Now ... very carefully ... follow the ones used in the checkout and notice how it is stored in a session variable to be saved between pages etc.

    This will also show how it is saved to the Order itself ...
    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
    Sep 2008
    Location
    Cleethorpes
    Posts
    1,229
    Plugin Contributions
    6

    red flag Re: Cart

    Hi I don't understand this....where am I supposed to be looking in the developers toolkit and what for exactly? I need something more detailed.

    Thanks


    Nick

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

    Default Re: Cart

    The Developers Tool Kit is located in your Zen Cart Admin under the menu choice for Tools ...

    Using the bottom input box, you can enter text, code, etc and search the Catalog or Admin or Both for where the text, code etc. is in the php files ...

    By searching for the word comments you can see what files on the checkout and orders use it and how it is used to collect the data and save to the database ...

    It would help you find where you are missing things ...
    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. Replies: 8
    Last Post: 1 Jun 2013, 04:34 PM
  2. v150 Add a View Cart link to my shopping cart header, in 12leaves template?
    By Serg in forum All Other Contributions/Addons
    Replies: 10
    Last Post: 22 Aug 2012, 02:49 AM
  3. Add to cart button from my main domain name to my shopping cart
    By uwinme in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 7 Mar 2010, 01:15 AM
  4. Replies: 8
    Last Post: 13 Apr 2009, 04:29 AM
  5. Title/tagline says zen-cart.comzen-cart.comzen-cart.com
    By akrewald in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 Nov 2007, 08:48 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