Forums / Templates, Stylesheets, Page Layout / Appending to Comments at Checkout

Appending to Comments at Checkout

Locked

Views: 714

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
30 Apr 2010, 10:59 PM
#1
akabin avatar

akabin

New Zenner

Join Date:
Feb 2010
Posts:
24
Plugin Contributions:
0

Appending to Comments at Checkout

We give a percentage of our profits to 1 of 4 charities for every sale. We give people the option to choose the charity that they would like their percentage directed. In "Step 3 of 3" of the checkout, I've set up a radio button so they can select the organization they want their portion to go to, but to make life (hopefully) easier, all I want to do is tack the information to the "Order Comments" variable that's passed to the database. Can anyone help append the customer's comment to add my own comment at the end? I've looked at the php, but I have no clue as to what's going on. Thanks in advance!

3 May 2010, 1:48 AM
#2
akabin avatar

akabin

New Zenner

Join Date:
Feb 2010
Posts:
24
Plugin Contributions:
0

Re: Appending to Comments at Checkout

Just bumping this up again. Still working on figuring it out. The writing of variables to the database using PHP is a bit too advanced for me. Thanks!

3 May 2010, 7:06 PM
#3
akabin avatar

akabin

New Zenner

Join Date:
Feb 2010
Posts:
24
Plugin Contributions:
0

Re: Appending to Comments at Checkout

I am guessing that this is where I need to look, but I'm perplexed as to what this code is doing: ```php

<div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_EDIT_SMALL, BUTTON_EDIT_SMALL_ALT) . '</a>'; ?></div> <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> ```

Thanks for any assistance!

5 May 2010, 11:22 PM
#4
akabin avatar

akabin

New Zenner

Join Date:
Feb 2010
Posts:
24
Plugin Contributions:
0

Re: Appending to Comments at Checkout

Still looking for any assistance. Thanks.