Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2006
    Posts
    199
    Plugin Contributions
    0

    Default Another comment box?

    I'm working with ESL and FEC and I'm very happy with them. The flow takes all orders through the same path at the end and I need to ask at least one more question of the customer. As I look through the logic flow, it seems a simple solution might be to create another comment box for their reply. I can add another field in the orders_status_history table to receive it.

    On the checkout page the comments code looks like this:
    PHP Code:
        <fieldset class="checkout" id="checkoutComments">
        <legend><?php echo TABLE_HEADING_COMMENTS?></legend>
        <?php echo zen_draw_textarea_field('comments''45''3'); ?>
        </fieldset>
    And on the confirmation page we have:
    PHP Code:
    <div><?php echo (empty($order->info['comments']) ? NO_COMMENTS_TEXT nl2br(zen_output_string_protected($order->info['comments'])) . zen_draw_hidden_field('comments'$order->info['comments'])); ?></div>
    So can anyone please help to show me what I need to copy/change and where besides the database I need to add more? I'm figuring there must be a place I need to define the second comment elsewhere in order for it to be held across from one file to the next and then saved to the database like the first comment.

    I'll need to pull it up in admin and it needs to go out in email, but I think that will all be straightforward once it's real and being saved with the order.

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

    Default Re: Another comment box?

    Check all of the related files in checkout_blah_blah for:
    $_SESSION['comments']

    A search in the Tools ... Developers Tool Kit ... for $_SESSION['comments'] should lead you to all other pages as well ...
    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
    Dec 2006
    Posts
    199
    Plugin Contributions
    0

    Default Re: Another comment box?

    Thanks, Linda! Don't know if you remember but I've been kicking this around for a really long time. Finally getting to it!

  4. #4
    Join Date
    Dec 2006
    Posts
    199
    Plugin Contributions
    0

    Default Re: Another comment box?

    Hmmm, lots of empty white screen where the checkout page used to be.

    I think this may be beyond my skill level.

 

 

Similar Threads

  1. Facebook comment box on product pages
    By Endre in forum Basic Configuration
    Replies: 25
    Last Post: 20 Feb 2012, 11:09 PM
  2. How to add another comment like box on the checkout pages?
    By hc1501 in forum Managing Customers and Orders
    Replies: 3
    Last Post: 10 Oct 2009, 02:31 AM
  3. Add another comment like box on the checkout pages?
    By hc1501 in forum General Questions
    Replies: 0
    Last Post: 9 Oct 2009, 09:58 PM
  4. Adding a Comment Box
    By project_computers in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Jun 2009, 02:11 AM
  5. Comment Box
    By phil8340 in forum General Questions
    Replies: 0
    Last Post: 16 Apr 2009, 06:28 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