Jump to content

Trouble finding equivalent of address.tpl in 1.6, within Prestshop 1.7

Recommended Posts

Hi, this is my first post.

I need to edit the address.tpl to do some tinkering with the city text box. In version 1.6 I just went to the default-bootstrap theme and edited address.tpl. - I am just changing the class of the city box to my own class, like this...

    {if $field_name eq 'city'}
                <div class="required form-group">
                    <label for="city">{l s='City'} <sup>*</sup></label>
                         <input class="calc_shipping_city" data-validate="{$address_validation.$field_name.validate}" type="text" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{else}{if isset($address->city)}{$address->city|escape:'html':'UTF-8'}{/if}{/if}" maxlength="64" />

anyway, I am trying to do the same in version 1.7 and I am getting caught up in themes/classic/checkout and customer and can't find a page equivalent to the address.tpl... Below is what is is customer/address.tpl. I just dont seem to understand how this all fits together and I am going further down the rabbit hole.

{extends file='customer/page.tpl'}

{block name='page_title'}
  {if $editing}
    {l s='Update your address' d='Shop.Theme.Customeraccount'}
    {l s='New address' d='Shop.Theme.Customeraccount'}

{block name='page_content'}
  <div class="address-form">
    {render template="customer/_partials/address-form.tpl" ui=$address_form}

Any help would be greatly appreciated! Many thanks in advance :)

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
  • Create New...

Important Information

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