I am doing a site for a gift delivery system , On the delivery address details I need to put the address in a text-area ( So the customers can put their address in their desired manner as the address is going to be in a African country).I thought it would be easier to change the address 2 input box in to a text-area but unfortunately after I have changed it it did not proceed to the next screen .Anyone can help me out on this please ..Is the text-area and input box variables are different ??
Code: Select all
<input type="text" name="address_1" value="<?php echo $address_1; ?>" />
Code: Select all
<textarea name="address_1"><?php echo $address_1; ?></textarea>
Regards
MarketInSG
And also I NEED TO CHANGE IT ONLY ON THE DELIVERY PAGE !!!.I have attached a picture of it to make it clear ..
Thanks again and please help me ...!!!
Attachments
oc.JPG (76.88 KiB) Viewed 2505 times
- catalog/view/theme/<your_template>/checkout/address.tpl
- catalog/view/theme/<your_template>/checkout/guest.tpl
- catalog/view/theme/<your_template>/checkout/guest_shipping.tpl
- catalog/view/theme/<your_template>/checkout/register.tpl
file,
find on each files:
Code: Select all
<td><input type="text" name="address_2" value="" class="large-field" /></td>
Code: Select all
<td><textarea name="address_2" cols="40" rows="5" class="large-field" /></textarea></td>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
data: $('#shipping-address input[type=\'text\'], #shipping-address textarea, #shipping-address select'),
Its working fine now ..Thank you so much again sir....!!!
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
straightlight wrote:In:
- catalog/view/theme/<your_template>/checkout/address.tpl
- catalog/view/theme/<your_template>/checkout/guest.tpl
- catalog/view/theme/<your_template>/checkout/guest_shipping.tpl
- catalog/view/theme/<your_template>/checkout/register.tpl
file,
find on each files:
replace with:Code: Select all
<input type="text" name="address_2" value="" class="large-field" />
Code: Select all
<textarea name="address_2" cols="40" rows="5" class="large-field" /></textarea>
I do it for checkout/register.tpl and got error:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
OK
<b>Notice</b>: Undefined index: address_2 in <b>/home/cbithr/public_html/notebook/catalog/model/account/customer.php</b> on line <b>18</b>[
And there is no address.tpl in checkout 1551
Code: Select all
/catalog/view/theme/<your_template>/template/account/address_form.tpl
/catalog/view/theme/<your_template>/template/account/register.tpl
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
you will need to do the above in checkout.tplravi de silva wrote:Thank you so much for your quick reply ..You are right I have to change it in 2 places .Adreess.tpl and guest_shipping.tpl as I just wanted in delivary .I addition to that I had to put a data type it ajax code of the checkout.tpl ..
data: $('#shipping-address input[type=\'text\'], #shipping-address textarea, #shipping-address select'),
Its working fine now ..Thank you so much again sir....!!!
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: Baidu [Spider] and 19 guests