New Zenner
- Join Date:
- Sep 2007
- Location:
- Gold Coast, Oz
- Posts:
- 14
- Plugin Contributions:
- 0
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
<?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.
<?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.