Jump to content
Sign in to follow this  
Potentam

Cum anulez obligativitatea de completare la one page checkout?

Recommended Posts

Am cumparat de la presta modulul one page checkout si nu stiu cum sa fac sa anulez obligativitatea de a se posta intr-o anumita casuta (zip code de exemplu), am reusit sa anulez stelutele din respectiva casuta dar nu am reusit sa fac sa nu mai fie obligatoriu sa fie completata casuta.

Va rog frumos cine poate sa ma ajute.

Multumesc frumos.

Share this post


Link to post
Share on other sites

din BO de la shiping>country acolo deschizi tarile si ai ned for zip code debifeaza

Share this post


Link to post
Share on other sites

Asta e raspunsul pe care l-am primit eu cand am avut nevoie de asta de la Peter, creatorul modulului

Postcode is mandatory for Prestashop, so the only way is to hard-code it and hide postcode fields. Here is how: Edit file /modules/onepagecheckout/opc-order.tpl, there you would find following sections. Changes are highlighted in bold.

For delivery address:


{l s='Postal code / Zip code' template='address'}
<input type="text">
*
{if $one_page_checkout_settings.ex_texts}  ({l s='ex.' mod='onepagecheckout'} {l s='90104' mod='onepagecheckout'}){/if}



And for invoice address:


{l s='Postal code / Zip code' template='address'}
<input type="text" class="text" name="inv_postcode" id="inv_postcode" value="00000" />
*
{if $one_page_checkout_settings.ex_texts}  ({l s='ex.' mod='onepagecheckout'} {l s='90104' mod='onepagecheckout'}){/if}



Also you may want to remove Postcode from email templates (if you have not yet done so)

Share this post


Link to post
Share on other sites

aveti idee cum pot face la one page checkup de la prestashop 1.4 ?

Share this post


Link to post
Share on other sites
aveti idee cum pot face la one page checkup de la prestashop 1.4 ?


Back Office > Shipping > Countries > Romania, edit si poti dezactiva cod postal obligatoriu.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More