Add "Date of delivery"

mad

No avatar

2006-10-17 17:54

Hello. I want to add a new field in Orders Delivery Page. The field it's "Date of delivery". For this, i download this script:
http://www.dynamicdrive.com/dynamicindex6/popcalendar2.htm
I edit the orders_delivery.tpl, and paste this code in the body:
<tr>
<th>
$lang[DateD]:
</th>
<td>
<form name="sampleform"><input type="text" name="firstinput" size=20><small><a href="javascript:showCal('Calendar1')">Select Date</a></small>
</form>
</td>
</tr>
______
In the top of file, i add:
<script type="text/javascript" src="$config[dir_js]cal2.js"></script>
<script type="text/javascript" src="$config[dir_js]cal_conf2.js"></script>
(the original text is:
<script type="text/javascript" src="cal2.js"></script>
<script type="text/javascript" src="cal_conf2.js"></script>)
I copy the files in shop/js directory. When i want to click on "Select Date", i see an error:
"Form [sampleform] is not found". Where is the error? After i see the script at work, i define a value, $aData[sDateD]

mad

No avatar

2006-10-17 22:12

I use another script, same problem. Where to copy the js files? If i copy to /js, doesn't work.

treewood (OpenSolution)

Avatar: treewood

2006-10-18 07:44

mad - it should work. maybe You got error in calendar?

mad

No avatar

2006-10-18 13:16

I get the error when i press "Select Date" to open the calendar popup. Same error in IE and Opera

Back to top
about us | contact