Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / modification of checkout_shipping

modification of checkout_shipping

Locked

Views: 1,259

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
17 Jan 2007, 1:05 PM
#1
bbai2005 avatar

bbai2005

New Zenner

Join Date:
Dec 2006
Posts:
12
Plugin Contributions:
0

modification of checkout_shipping

I need add a new text field below "Special Instructions or Comments About Your Order" field on the check out page. So I add

<fieldset class="shipping" id="partydate">
<legend><?php echo TABLE_HEADING_PARTYDATE; ?></legend>
<?php echo zen_draw_textarea_field('partydate', '45', '1'); ?>
</fieldset>
```in **shop\includes\templates\custom\templates\tpl_checkout_shipping_default.php**

and 

define('TABLE_HEADING_PARTYDATE', 'Please Tell Us the Date(s) of Your Birthday Party');


**also I add a text data field "partydate" into  database  table  "orders_status_history" . 

I would like to know anything else I need to modify to catch the data customer input into the text field I just added.

Thanks in advance!
17 Jan 2007, 5:14 PM
#2
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,593
Plugin Contributions:
0

Re: modification of checkout_shipping

Why during the checkout? Wouldn't it be better to get the date with the product it is associated with using the attributes?

17 Jan 2007, 11:38 PM
#3
bbai2005 avatar

bbai2005

New Zenner

Join Date:
Dec 2006
Posts:
12
Plugin Contributions:
0

Re: modification of checkout_shipping

Hi Kim,

The site sell party supplies, so better know when customer is going to do the party.

Any suggestion from you?

Cheers

bbai

17 Jan 2007, 11:56 PM
#4
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,593
Plugin Contributions:
0

Re: modification of checkout_shipping

Okay- the comments section isn't enough? You can change the "title" from special instructions to Party date and instructions.

18 Jan 2007, 12:44 AM
#5
bbai2005 avatar

bbai2005

New Zenner

Join Date:
Dec 2006
Posts:
12
Plugin Contributions:
0

Re: modification of checkout_shipping

Yes, change the title is the easiest way. I did the complex way to add an extra field, just because the client insist an separate field from the comments.