Jump to content

How to disable required field ? In which array is stored email address ?


Recommended Posts

Hi,

I'm trying to redesign checkout process. I found out that for some of fields it is enought to comment them out in order-opc-new.account.tpl , but i still have a problem with country, city and address.

So, how can i disable required fields checking for these fields ?

 

 

I also want to know how to force guest checkout(skip account creating). At this moment i'm doing autoclick $("#opc_guestCheckout").click();

and it works good, but maybe someone give me better way to do this.

 

Regards, Tom

Edited by avathar (see edit history)
Link to comment
Share on other sites

ok, the easiest way is to add hidden input fields ,which will send fake data.

 

but this will create some problem later. Because this fake data will be displayed on page order-address.tpl

in line: <ul class="address item" id="address_delivery" {if $cart->isVirtualCart()}style="display:none;"{/if}></ul>

 

To fix this i commented out this line and get user info from array $address (e.g. {$address.firstname} )

 

Now i have problem to find out where is stored email address.

I have no idea why email address isn't stored in $address array.

Edited by avathar (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...