ludlogan Posted March 20, 2015 Share Posted March 20, 2015 (edited) nel dettaglio del prodotto abbiamo il codice di riferimento .. ok vorrei metterlo in homepage tra la foto e il nome prodotto di ogni prodotto nella lista. sto provando a copiarlo da PRODUCT.TPL per metterlo in PRODUCT-LIST.TPL ma mi viene vuoto... AIUTO RAGAZZI e GRAZIE A TUTTI IN ANTICIPO PER L'ATTENZIONE Edited March 20, 2015 by ludlogan (see edit history) Link to comment Share on other sites More sharing options...
giuliopowa Posted March 20, 2015 Share Posted March 20, 2015 (edited) prova ad aggiungere questo : <p id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;"{/if}> <label for="product_reference">{l s='Reference:'} </label> <span class="editable">{$product->reference|escape:'htmlall':'UTF-8'}</span> </p>e anche questo dove ci sono le variabili dentro al tag script per intendercivar productReference = '{$product->reference|escape:'htmlall':'UTF-8'}'; Edited March 20, 2015 by giuliopowa (see edit history) Link to comment Share on other sites More sharing options...
ludlogan Posted March 20, 2015 Author Share Posted March 20, 2015 <p id="product_reference" {if isset($groups) OR !$product->reference}style="display: none;"{/if}> <label for="product_reference">{l s='Reference:'} </label> <span class="editable">{$product->reference|escape:'htmlall':'UTF-8'}</span> </p> L'ho messo in product-list.tpl ma var productReference = '{$product->reference|escape:'htmlall':'UTF-8'}'; dove lo devo mettere? Link to comment Share on other sites More sharing options...
giuliopowa Posted March 20, 2015 Share Posted March 20, 2015 (edited) appena dopo i commenti del file product-list.tpl prova a scrivere così ( non ho fatto una prova )<script type="text/javascript"> var productReference = '{$product->reference|escape:'htmlall':'UTF-8'}';</script>se no prova a sostituire questo {$product->reference|escape:'htmlall':'UTF-8'}con questo {$product.reference|escape:'htmlall':'UTF-8'} Edited March 20, 2015 by giuliopowa (see edit history) Link to comment Share on other sites More sharing options...
giuliopowa Posted March 20, 2015 Share Posted March 20, 2015 oky ho fatto una prova ,non mettere il tag script e neanche quello al suo interno ,poi metti questo dove vuoi <p id="product_reference" {if isset($groups) OR !$product->reference}"{/if}> <label for="product_reference">{l s='Reference:'} </label> <span class="editable">{$product.reference|escape:'htmlall':'UTF-8'}</span> </p> 1 Link to comment Share on other sites More sharing options...
ludlogan Posted March 20, 2015 Author Share Posted March 20, 2015 sei un idolo funziona alla grande cappero! :D :D :D :D :D :D :D :D Link to comment Share on other sites More sharing options...
giuliopowa Posted March 20, 2015 Share Posted March 20, 2015 prego figurati ! Link to comment Share on other sites More sharing options...
ludlogan Posted March 20, 2015 Author Share Posted March 20, 2015 credo di averti dato un like... confermi? Link to comment Share on other sites More sharing options...
giuliopowa Posted March 20, 2015 Share Posted March 20, 2015 si si confermo, grazie Link to comment Share on other sites More sharing options...
Maurice Posted September 3, 2018 Share Posted September 3, 2018 Buona Sera , Ho lo stesso problema con la versione 1.7.4.2 - Template di Default gentilmente potete indicarmi se devo fare la stessa procedura? Grazie in anticipo 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