-
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.
-
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 ...
-
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!
-
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.