Jump to content

Recommended Posts

  • 2 weeks later...

I have a similar problem but not the same one. When I add an adress, there is a message like this:

 

1 error:

city is necesary

 

The problem is that the city field doesn`t appear in the application form!!

I changed the adress format in the DB and tried to set in order that the city field apears, but I couldn´t fix it.

The adress format is:

 

firstname lastname
company
vat_number
address1
address2
city
Country:name
Sate:name
phone
 
Can anyone help me please??!
Link to comment
Share on other sites

  • 2 weeks later...

Are you using the default template?
 

CHeck that you have the following in address.tpl

			{if $field_name eq 'city'}
				<div class="required form-group">
					<label for="city">{l s='City'} <sup>*</sup></label>
					<input class="is_required validate form-control" 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" />
				</div>
				{* if customer hasn't update his layout address, country has to be verified but it's deprecated *}
			{/if}
Link to comment
Share on other sites

 

Are you using the default template?

 

CHeck that you have the following in address.tpl

			{if $field_name eq 'city'}
				<div class="required form-group">
					<label for="city">{l s='City'} <sup>*</sup></label>
					<input class="is_required validate form-control" 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" />
				</div>
				{* if customer hasn't update his layout address, country has to be verified but it's deprecated *}
			{/if}

 

I´m not using default template, I use Biocosmetic Theme.

A developer´s support agent that create this template, told me that is the same problem with default theme.

This is how its looks the code in adress.tpl :

 

</p>
{/if}
{if $field_name eq 'city'}
<p class="required text">
<label for="city">{l s='City'}<sup>*</sup></label>
<input type="text" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{else}{if isset($address->city)}{$address->city}{/if}{/if}" maxlength="64" />
</p>
{*
if customer hasn't update his layout address, country has to be verified
but it's deprecated
*}
Link to comment
Share on other sites

Dd you actually test on your own with the default theme? It would be great to see the live site anyway :) might be easier to understand the issue :)

Hi Nemo, thank for your help!

 

I tested the default template and the issue persists.

The piece of code in default´s adress.tpl is:

 

{/if}
{if $field_name eq 'city'}
<p class="required text">
<label for="city">{l s='City'} <sup>*</sup></label>
<input type="text" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{else}{if isset($address->city)}{$address->city|escape:'html'}{/if}{/if}" maxlength="64" />
</p>
{*
if customer hasn't update his layout address, country has to be verified
but it's deprecated
*}
 

Actually we have a test site (subdomain) : www.germinia.cl/dev2/index.php

I can give you user and pass if you want to see BO.

Tks again!!

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 year later...
×
×
  • Create New...