Jump to content

Prestashop 1.3.5 vers problema con le provincie


giralatina

Recommended Posts

Ciao a tutti
Ho eseguito due installazioni di Prestashop

1) Nel primo mi ritrovo un problema con le provincie non si vedono nella fase di registrazione

- Ho controllato la table ps_state i dati ci sono.


Il problema sembra che sia nel DB e non nei file TPL perchè se provo un altro DB le PV si vedono.


2) Nel secondo tutto ok

QUALCUNO DI VOI PUÒ DARMI DEI SUGGERIMENTI SUL DA FARSI.

Non posso cambiare il db perchè ho prodotti registrati

Grazie

Link to comment
Share on other sites

  • 2 months later...

funzionicchia, nel senso che adesso se vado a modificare il cliente mi dice che e' obbligatorio inserire la provincia, solo che nel TPL non mi fa vedere la casella relativa per la scelta...

ho controllato nel tpl c'e' la voce per la provincia ("State")



{l s='State'}

-

*



ma non si sogna minimamente di visualizzarmelo...

Link to comment
Share on other sites





{l s='City'}
                       <input type="text" class="text" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{/if}" />
*



{l s='Country'}

-
                               {foreach from=$countries item=v}
{$v.name|escape:'htmlall':'UTF-8'}
                               {/foreach}

*




{l s='State'}

-

*






IO ho fatto una cosa del genere

Link to comment
Share on other sites

Niente da fare, vedi immagine allegata...

parte del tpl interessata:


{l s='Your address'}


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



{l s='First name'}
           <input type="text" class="text" id="firstname" name="firstname" value="{if isset($smarty.post.firstname)}{$smarty.post.firstname}{/if}" />
*



{l s='Last name'}
           <input type="text" class="text" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname}{/if}" />
*



{l s='Address'}
           <input type="text" class="text" name="address1" id="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{/if}" />
*



{l s='Address (2)'}
           <input type="text" class="text" name="address2" id="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{/if}" />



{l s='Postal code / Zip code'}
           <input type="text" class="text" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" />
*

// mod giralatina


{l s='City'}
           <input type="text" class="text" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{/if}" />
*



{l s='Country'}

-
               {foreach from=$countries item=v}
{$v.name|escape:'htmlall':'UTF-8'}
               {/foreach}

*



{l s='State'}

-

*
       
// eof() mod giralatina        


{l s='Additional information'}
           <textarea name="other" id="other" cols="26" rows="3">{if isset($smarty.post.other)}{$smarty.post.other}{/if}</textarea>

es. orari di consegna /delivery time



{l s='Home phone'}
         <input type="text" class="text" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{/if}" />
*



{l s='Mobile phone'}
           <input type="text" class="text" name="phone_mobile" id="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{/if}" />



{l s='Assign an address title for future reference'} !
           <input type="text" class="text" name="alias" id="alias" value="{if isset($smarty.post.alias)}{$smarty.post.alias}{else}{l s='My address'}{/if}" />
*



{l s='Codice Fiscale'}
           <input type="text" class="text" name="cf" id="cf" value="{if isset($smarty.post.cf)}{$smarty.post.cf|escape:'htmlall':'UTF-8'}{/if}" />
*



{l s='Partita IVA Comunitaria'}
           <input type="text" class="text" name="piva" id="piva" value="{if isset($smarty.post.piva)}{$smarty.post.piva|escape:'htmlall':'UTF-8'}{/if}" />
*es. IT01234567890



{l s='Tax identification'}


{l s='Identication number'}
           <input type="text" class="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}" />
{l s='DNI / NIF / NIE'}


   {$HOOK_CREATE_ACCOUNT_FORM}

44378_NDvNNBUktC2MOUhFCf9p_t

Link to comment
Share on other sites

nel database ho modificato l'italia per avere le province, nota che nel BO vedo le province e' solo per il FE che non le vedo...

e non posso rasare il db in quanto ci sono gia' caricati circa 4000 articoli con le loro varianti...

nel db di test (VUOTO) funziona tutto in maiera corretta...

in pratica ho 2 installazioni che si comportano in maniera differente, e non capisco perche'

Link to comment
Share on other sites

ho risolto barando...

ho azzerato la tabella ps_state db del sito in produzione e ci ho importato i dati della stessa tabella del db di test...

ora vedo la casella province, evidentemente c'era qualcosa che non quadrava nella tabella, anche se non ho ben capito cosa...

Ti ringrazio cmq. per l'aiuto

(e cmq mantengo la tua modifica nel TPL)

Link to comment
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...