Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / User Selected Comments

User Selected Comments

Locked

Views: 767

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
2 Nov 2007, 3:28 AM
#1
zark avatar

zark

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.

2 Nov 2007, 5:01 AM
#2
zark avatar

zark

New Zenner

Join Date:
Sep 2007
Location:
Gold Coast, Oz
Posts:
14
Plugin Contributions:
0

Re: User Selected Comments

Resolved problem.
By inserting

$_SESSION['comments'] =  $_POST['commentInstallment']."\n".$_SESSION['comments'];

Prior to the other code, the desired effect is acheived.