Jump to content

How to modify order-opc-new-account.tpl


Recommended Posts

Hello every one, I have to modify  order-opc-new-account.tpl.

Every thing looks right.

post-756130-0-71071000-1400669166_thumb.png

I removed this code from order-opc-new-account.tpl

<p class="required text">
<label for="firstname">{l s='First name'} <sup>*</sup></label>
<input type="text" class="text" id="customer_firstname" name="customer_firstname" onblur="$('#firstname').val($(this).val());" value="{if isset($guestInformations) && $guestInformations.customer_firstname}{$guestInformations.customer_firstname}{/if}" />
</p>
<p class="required text">
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
<input type="text" class="text" id="customer_lastname" name="customer_lastname" onblur="$('#lastname').val($(this).val());" value="{if isset($guestInformations) && $guestInformations.customer_lastname}{$guestInformations.customer_lastname}{/if}" />
</p>

But then I'm in backoffice what I see in Orders

post-756130-0-50066700-1400669678_thumb.png

It's posible to fix that?

And how to hide country? If will be only one country so it's nessesary at all.

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

  • 5 months later...

I am not expert at this, but as far as I think, the first name and last name would be primary keys in the database calls made by prestashop, so if you remove those, back office wouldn't be able to identify or fetch any information related to the guest even though the order would be placed.

 

And to remove the country altogether, in the same file, search for "country", you will probably get a result contained inside a <div> element. Remove the entire block and you will see that option disappear.

 

Thanks.

Link to comment
Share on other sites

×
×
  • Create New...