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

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 ?


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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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