Jump to content

Is it possible customize one page checkout in Prestashop 1.5.2?


Recommended Posts

Hi,

i'm testing the 1.5.2 Prestashop version, and I saw that if I enable the One page checkout I have very few options to customize it.

 

For example, in the customers form (make the order without registering), I don't find how can we hide the birthday, or the "company name" field, or any other field ...

 

And by default for example, the payment methods can't be showed if you aren't registered and I would like to show to everybody.

 

It's possible to change the configuration more deeply in backoffice? or it's necessary to change the code (I don't like this idea because there will be cause problems with future actualizations because it's not a module)?

 

Any help?

 

Thank you in advance.

Edited by Adolfo_OM (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 1 month later...

You need to edit your themes authentication.tpl

 

For example, to remove The birthday fields, use tags to comment out the parts you do not want.

 

Using <!-- and ending -->

 

 

<!--<p class="select">

<span>{l s='Date of Birth'}</span>

<select id="days" name="days">

<option value="">-</option>

{foreach from=$days item=day}

<option value="{$day}" {if ($sl_day == $day)} selected="selected"{/if}>{$day}  </option>

{/foreach}

</select>

{*

{l s='January'}

{l s='February'}

{l s='March'}

{l s='April'}

{l s='May'}

{l s='June'}

{l s='July'}

{l s='August'}

{l s='September'}

{l s='October'}

{l s='November'}

{l s='December'}

*}

<select id="months" name="months">

<option value="">-</option>

{foreach from=$months key=k item=month}

<option value="{$k}" {if ($sl_month == $k)} selected="selected"{/if}>{l s=$month} </option>

{/foreach}

</select>

<select id="years" name="years">

<option value="">-</option>

{foreach from=$years item=year}

<option value="{$year}" {if ($sl_year == $year)} selected="selected"{/if}>{$year}  </option>

{/foreach}

</select>

</p>-->

Link to comment
Share on other sites

To remove the Company field.

 

<!--{if $field_name eq "company"}

<p class="text">

<label for="company">{l s='Company'}</label>

<input type="text" class="text" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" />

</p> -->

Link to comment
Share on other sites

thanks for reply, I will look at that.

what I plan to do is to make a quick order link on product page, because on some shops making an account isn't necesary ( for example on furniture, you don't buy furniture every day).

A useful module I found is:

http://addons.prestashop.com/en/checkout/5769-Fast-order-by-email.html

But I don't have that much money for it at the moment, so I try to make a solution myself.

thank you.

Link to comment
Share on other sites

you can also move fields up or down. I find that I prefer the Country Field before the state field, because after the customer chooses the country, states change to that country.

 

Hi, do you know how to ignore Terms of Service? I'd erase checked box from order-carrier.tpl and var msg on line 39, but cannot continue to the next step for payment at front office. Although the checked box has been erased but I want to make it without accept terms of service and pass through the last step.

Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...