Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2010
    Posts
    23
    Plugin Contributions
    0

    Default Appending Comments at Checkout

    I tried this question in the "Templates, Stylesheets, Page Layout" section, but didn't get a response. Here's hoping someone here might point me in the right direction...

    We give a percentage of our profits to 1 of 4 charities for every sale. People have 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. 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 on checkout? I've looked at the php, but I have no clue as to what's going on. I believe this is what needs to be edited:

    PHP Code:
    <div class="buttonRow forward"><?php echo  '<a href="' zen_href_link(FILENAME_CHECKOUT_PAYMENT'''SSL') . '">' zen_image_button(BUTTON_IMAGE_EDIT_SMALLBUTTON_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>
    Any assistance would be greatly appreciated. Thanks in advance!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Appending Comments at Checkout

    I've set up a radio button so they can select the organization they want their portion to go to.
    Have you added a DB record to contain this information?
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2010
    Posts
    23
    Plugin Contributions
    0

    Default Re: Appending Comments at Checkout

    Quote Originally Posted by kobra View Post
    Have you added a DB record to contain this information?
    No, I didn't. I was hoping to just append the comments with a quick "Organization = (their selection)" at the end so I didn't have to add an extra DB record. I figured that would be easier.

  4. #4
    Join Date
    Feb 2010
    Posts
    23
    Plugin Contributions
    0

    Default Re: Appending Comments at Checkout

    Would there be a better way to do it?

  5. #5
    Join Date
    Feb 2010
    Posts
    23
    Plugin Contributions
    0

    Default Re: Appending Comments at Checkout

    Just bumping this up. I've been trying to figure this out for quite a while now and it's pretty much the last thing before I can launch the site, so I'm kinda stuck. Any php gurus who could point me in the right direction? It would be greatly appreciated!

 

 

Similar Threads

  1. v139h Add comments at checkout
    By jgold723 in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 18 Sep 2012, 11:11 PM
  2. Customer Checkout Comments not working
    By SPH in forum General Questions
    Replies: 1
    Last Post: 22 Apr 2011, 11:31 PM
  3. Appending to Comments at Checkout
    By akabin in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 6 May 2010, 12:22 AM
  4. PayPal merchant comments on checkout
    By nosnappyname in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 29 Jul 2008, 01:33 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