giralatina Posted February 25, 2011 Share Posted February 25, 2011 Ciao a tuttiHo eseguito due installazioni di Prestashop1) 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 okQUALCUNO DI VOI PUÒ DARMI DEI SUGGERIMENTI SUL DA FARSI.Non posso cambiare il db perchè ho prodotti registratiGrazie Link to comment Share on other sites More sharing options...
giralatina Posted February 27, 2011 Author Share Posted February 27, 2011 Allora ho risolto il pb era nel database contains_states Nonavevo questa colonna impostata ad 1 per L'italia.Ho eseguito questa modifica a mano sul Databases Qualcuno di voi sa se bastava semplicemente farla lato BO Link to comment Share on other sites More sharing options...
Nsfr750 Posted April 28, 2011 Share Posted April 28, 2011 ho il tuo stesso problema, ti spiace dirmi dove esattamente hai modificato a mano nel database?perche' dal pannello di amministrazione non c'e' una voce per abilitare o meno la funzione.Grazie, Link to comment Share on other sites More sharing options...
giralatina Posted May 2, 2011 Author Share Posted May 2, 2011 Allora nel database modifica questa tableps_country e metti il code 1 al valore contains_statesprova e fammi sapere Link to comment Share on other sites More sharing options...
Nsfr750 Posted May 2, 2011 Share Posted May 2, 2011 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 More sharing options...
giralatina Posted May 2, 2011 Author Share Posted May 2, 2011 {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 More sharing options...
Nsfr750 Posted May 2, 2011 Share Posted May 2, 2011 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} Link to comment Share on other sites More sharing options...
giralatina Posted May 2, 2011 Author Share Posted May 2, 2011 nel database hai fatto la seguente modifica?Hai pb nel BO oppure nel FE Link to comment Share on other sites More sharing options...
Nsfr750 Posted May 2, 2011 Share Posted May 2, 2011 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 More sharing options...
Nsfr750 Posted May 2, 2011 Share Posted May 2, 2011 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 More sharing options...
giralatina Posted May 2, 2011 Author Share Posted May 2, 2011 ok anche io ho fatto un cosa del genere mi sembra.Cmq credo che dovrebbe bastare solo la modifica al database. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now