How to change order form

sofck

No avatar

2006-09-27 11:09

I need to remove some fields from Order Delivery address.
fields: (last name,company, street, zip code)
Please anybody help.

______________
sofck@yandex.ru

wewior (OpenSolution)

Avatar: wewior

2006-09-27 12:55

it is file templates/orders_delivery.tpl
best way in my opinion will be if you change them to hidden fields for example create field like:
<input type="hidden" name="sFirstName" value="-" />
for every other field you want to remove, then just remove oryginal fields

sofck

No avatar

2006-09-27 16:50

but what about e-mail! will it have zero hidden fields (admin and client mail)

cornbread

No avatar

2006-10-17 02:37

I just want them to not be required... how do I make it so only name and email are required?

treewood (OpenSolution)

Avatar: treewood

2006-10-17 08:27

cornbread - edit:
1. templates/orders_delivery.tpl and delete ,Array( 'sEmail', 'email' ) if email is not required, delete ,Array( 'sTelephone' ) if phone is not required etc.
2. core/orders.php go to function checkOrderFields() and delete && checkEmail( $aForm['sEmail'] ) if email is not required, delete && checkLength( $aForm['sTelephone'], 0 ) if phone is not required etc.

cornbread

No avatar

2006-10-17 18:16

Worked thanks!

Back to top
about us | contact