Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2007
    Location
    Gold Coast, Oz
    Posts
    14
    Plugin Contributions
    0

    Default User Selected Comments

    What I am trying to acheive is a feature where the customer can select - say 10 weeks until the product is required, so they will make 10 weekly payments of xyz.

    I have seen installment plan, but from what I understand it is fixed to # months and credit card only. I need any payment option to have this noted and the frequency needs to be flexible to allow for weekly, fortnightly or monthly installments.

    It doesn't need to affect the order totals, just a note in the comments will do. Something like: 5 Payments of $64.99

    I have placed a Drop Down Selector Field in the Order Comments section of the checkout_payment page called "commentInstallment". (To test the concept).

    On the checkout_confirmation page, I have
    Code:
    <?php $order->info['comments'] .=  $_POST['commentInstallment'] ?>
    to pick up the selected variable. The following line which displays the order comments works and includes my new comment text.
    Code:
    <?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>
    The problem is, that the new comment does not get included in the order either in the email or order history.

    Any pointers will be gratefully received.
    Cheers.

  2. #2
    Join Date
    Sep 2007
    Location
    Gold Coast, Oz
    Posts
    14
    Plugin Contributions
    0

    Default Re: User Selected Comments

    Resolved problem.
    By inserting
    Code:
    $_SESSION['comments'] =  $_POST['commentInstallment']."\n".$_SESSION['comments'];
    Prior to the other code, the desired effect is acheived.

 

 

Similar Threads

  1. How to show image of user selected product variation?
    By shahzaman in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 25 Feb 2009, 06:43 AM
  2. code comments passed to end-user
    By Brickoneer in forum General Questions
    Replies: 8
    Last Post: 24 Mar 2008, 10:58 PM
  3. How to allow user comments without registering?
    By danyalejandro in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Oct 2007, 05:39 PM
  4. Need User text input based on Attribute selected
    By heinz in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 Aug 2007, 09:35 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