jampr Posted March 16, 2012 Share Posted March 16, 2012 Salve, ho cercato nel forum soluzioni possibili ma non ho ben capito se fossero adatti solo per le veccie versioni o anche per la nuova. Io uso prestashop 1.4.7 esiste un modulo o un modo veloce e semplice per rendere i prezzi visibili solo agi uteni registrati? grazie. Link to comment Share on other sites More sharing options...
Nsfr750 Posted March 16, 2012 Share Posted March 16, 2012 Esempio di product-list.tpl modificato per non visualizzare i prezzi se non si e' registrati/loggati {if $cookie->isLogged()} <p class="pprice"> {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} <span> {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> {/if} <a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='view'}</a> {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && !$PS_CATALOG_MODE} {if ($product.allow_oosp || $product.quantity > 0) && $product.customizable != 2} <a class="ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Add to cart'}">{l s='cart'}</a> {else} <strike>{l s='Add to cart'}<strike> {/if} {/if} {else} <span class="form_produkt"><a href="http://www.TUOSITO.it/it/autenticazione?back=my-account.php">Devi essere registrato per vedere i prezzi e le opzioni acquisto</a></span> {/if} ovviamente la modifica andra' fatta in ogni modulo/pagina che visualizza i prezzi. Link to comment Share on other sites More sharing options...
jampr Posted March 19, 2012 Author Share Posted March 19, 2012 Sto provando a modificare homefeatured.tpl del tema che uso..ma non funziona. il codice è questo (le modifiche le metto in rosso, ditemi dove saglio). {* * 2007-2011 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2011 PrestaShop SA * @version Release: $Revision: 6594 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <!-- MODULE Home Prodotti in vetrina--> <div id="featured-products_block_center" class="block products_block"> <h4>{l s=Feature products' mod='homefeatured'}</h4> {if isset($products) AND $products} <div class="block_content"> {assign var='liHeight' value=280} {assign var='nbItemsPerLine' value=4} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight} <ul style="height:{$ulHeight}px;"> {foreach from=$products item=product name=homeFeaturedProducts} <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1}clear{/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}"> <h5><a href="{$product.link}" title="{$product.name|truncate:32:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'}</a></h5> <div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:130:'...'}</a></div> <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'medium')}" alt="{$product.name|escape:html:'UTF-8'}" /></a> <div> [color=#ff0000]{if $cookie->isLogged()} [/color] {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}<div style="height:21px;"></div>{/if} <a class="button" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a> {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a> {else} <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span> {/if} [color=#ff0000]{/if} {else} <span class="form_produkt"><a href="http://www.TUOSITO.it/it/autenticazione?back=my-account.php">Devi essere registrato per vedere i prezzi e le opzioni acquisto</a></span> {/if}[/color] {else} <div style="height:23px;"></div> {/if} </li> {/foreach} </ul> </div> {else} <p>{l s='No featured products' mod='homefeatured'}</p> {/if} </div> <!-- /MODULE Home Featured Products --> Link to comment Share on other sites More sharing options...
Nsfr750 Posted March 20, 2012 Share Posted March 20, 2012 <span class="form_produkt"><a href="http://www.TUOSITO.it/it/autenticazione?back=my-account.php">Devi essere registrato per vedere i prezzi e le opzioni acquisto</a></span> Devi OVVIAMENTE modificare la parte http://www.TUOSITO.it/it/ mettendoci l'indirizzo del tuo sito. Il /it/ levalo se non usi la riscrittura degli URL Link to comment Share on other sites More sharing options...
jampr Posted March 20, 2012 Author Share Posted March 20, 2012 Lo so che devo modificare il nome del sito, io mi riferivo alla posizione del codice Link to comment Share on other sites More sharing options...
jampr Posted March 20, 2012 Author Share Posted March 20, 2012 H risolto grazie Link to comment Share on other sites More sharing options...
Totti Posted March 31, 2012 Share Posted March 31, 2012 In una versione futura sarebbe bello e utile metterlo anche come opzione !!!!! Link to comment Share on other sites More sharing options...
BRIAN1986 Posted March 31, 2012 Share Posted March 31, 2012 Really>?????? Link to comment Share on other sites More sharing options...
eleit Posted April 3, 2012 Share Posted April 3, 2012 Esempio di product-list.tpl modificato per non visualizzare i prezzi se non si e' registrati/loggati {if $cookie->isLogged()} <p class="pprice"> {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} <span> {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> {/if} <a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='view'}</a> {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && !$PS_CATALOG_MODE} {if ($product.allow_oosp || $product.quantity > 0) && $product.customizable != 2} <a class="ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Add to cart'}">{l s='cart'}</a> {else} <strike>{l s='Add to cart'}<strike> {/if} {/if} {else} <span class="form_produkt"><a href="http://www.TUOSITO.it/it/autenticazione?back=my-account.php">Devi essere registrato per vedere i prezzi e le opzioni acquisto</a></span> {/if} ovviamente la modifica andra' fatta in ogni modulo/pagina che visualizza i prezzi. Ciao Nsfr, ho provato a inserirlo nel product-list.tpl, ma il prezzo si vede ancora... ma devo solo inserire o devo rimpiazzare qualche altra riga con questo? avevo letto in altri post che bisogna scaricare il modulo per il controllo della registrazione, bisogna farlo anche per la versione 1.4.6? come posso fare per mettere la scritta "... devi essere registrato..." in più lingue (ho il sito in 4 lingue). ti ringrazio se riesci a darmi qualche suggerimento. Link to comment Share on other sites More sharing options...
Nsfr750 Posted April 3, 2012 Share Posted April 3, 2012 Ciao Nsfr, ho provato a inserirlo nel product-list.tpl, ma il prezzo si vede ancora... ma devo solo inserire o devo rimpiazzare qualche altra riga con questo? avevo letto in altri post che bisogna scaricare il modulo per il controllo della registrazione, bisogna farlo anche per la versione 1.4.6? come posso fare per mettere la scritta "... devi essere registrato..." in più lingue (ho il sito in 4 lingue). ti ringrazio se riesci a darmi qualche suggerimento. Vanno modificati tutti i files in cui si vedono i prezzi. Quindi anche i moduli: blockspecials - homefeatured nel tema modifichiproduct-list.tpl e product.tpl Link to comment Share on other sites More sharing options...
eleit Posted April 3, 2012 Share Posted April 3, 2012 Vanno modificati tutti i files in cui si vedono i prezzi. Quindi anche i moduli: blockspecials - homefeatured nel tema modifichiproduct-list.tpl e product.tpl Si, questo l'ho capito, avevo iniziato da product-list per vedere i cambiamenti in lista prodotti.. adesso farò altre prove... ma il modulo per il controllo registrazione è comunque da installare? per le lingue mi riesci a suggerire qualcosa? grazie Link to comment Share on other sites More sharing options...
Nsfr750 Posted April 3, 2012 Share Posted April 3, 2012 il modulo di controllo registrazione non e' obbligatoriamente da installare, per le lingue basta che ti fai le traduzioni comeper qualsiasi altro modulo mettendo l'apposito "codice" (vedi es. qui sotto) homefeatured.tpl già modificato <!-- MODULE Home Featured Products --> <div id="featured-products_block_center" class="block products_block"> <h4>{l s='Featured products' mod='homefeatured'}</h4> {if isset($products) AND $products} <div class="block_content"> {assign var='liHeight' value=342} {assign var='nbItemsPerLine' value=4} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight} <ul style="height:{$ulHeight}px;"> {foreach from=$products item=product name=homeFeaturedProducts} <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1}clear{/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}"> <h5><a href="{$product.link}" title="{$product.name|truncate:32:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'}</a></h5> <div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:130:'...'}</a></div> <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" /></a> <div> {if $cookie->isLogged()} {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}<div style="height:21px;"></div>{/if} <a class="button" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a> {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a> {else} <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span> {/if} {else} <div style="height:23px;"></div> {/if} {else} <span class="form_produkt">{l s='You must to be logged to see prices and purchase options' mod='homefeatured'}</span> {/if} </div> </li> {/foreach} </ul> </div> {else} <p>{l s='No featured products' mod='homefeatured'}</p> {/if} </div> <!-- /MODULE Home Featured Products --> Link al file modificato (visto che il forum sballa tutto) http://cinf.dyndns.org/ps/homefeatured.zip Alla riga 31 del file trovi la corretta modalità per inserire i testi che poi tradurrai dal pannello di PS (amministrazione - strumenti - traduzioni) Link to comment Share on other sites More sharing options...
eleit Posted April 9, 2012 Share Posted April 9, 2012 il modulo di controllo registrazione non e' obbligatoriamente da installare, per le lingue basta che ti fai le traduzioni comeper qualsiasi altro modulo mettendo l'apposito "codice" (vedi es. qui sotto) homefeatured.tpl già modificato [b] {l s='Featured products' mod='homefeatured'}[/b] {if isset($products) AND $products} {assign var='liHeight' value=342} {assign var='nbItemsPerLine' value=4} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight}[list] {foreach from=$products item=product name=homeFeaturedProducts}[*] [b] [url="{$product.link}"]{$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'}[/url][/b] [url="{$product.link}"]{$product.description_short|strip_tags|truncate:130:'...'}[/url][url="{$product.link}"][img=%7B$link-%3EgetImageLink%28$product.link_rewrite,%20$product.id_image,%20%27home%27%29%7D][/url] {if $cookie->isLogged()} {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}{else} {/if} [url="{$product.link}"]{l s='View' mod='homefeatured'}[/url] {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} [url="%7B$link-%3EgetPageLink%28%27cart.php%27%29%7D?qty=1&id_product=%7B$product.id_product%7D&token=%7B$static_token%7D&add"]{l s='Add to cart' mod='homefeatured'}[/url] {else} {l s='Add to cart' mod='homefeatured'} {/if} {else} {/if} {else} {l s='You must to be logged to see prices and purchase options' mod='homefeatured'} {/if} {/foreach} [/list]{else} {l s='No featured products' mod='homefeatured'}{/if} Link al file modificato (visto che il forum sballa tutto) http://cinf.dyndns.org/ps/homefeatured.zip Alla riga 31 del file trovi la corretta modalità per inserire i testi che poi tradurrai dal pannello di PS (amministrazione - strumenti - traduzioni) ok, grazie mille! Link to comment Share on other sites More sharing options...
eleit Posted April 9, 2012 Share Posted April 9, 2012 il modulo di controllo registrazione non e' obbligatoriamente da installare, per le lingue basta che ti fai le traduzioni comeper qualsiasi altro modulo mettendo l'apposito "codice" (vedi es. qui sotto) homefeatured.tpl già modificato [b] {l s='Featured products' mod='homefeatured'}[/b] {if isset($products) AND $products} {assign var='liHeight' value=342} {assign var='nbItemsPerLine' value=4} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight}[list] {foreach from=$products item=product name=homeFeaturedProducts}[*] [b] [url="{$product.link}"]{$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'}[/url][/b] [url="{$product.link}"]{$product.description_short|strip_tags|truncate:130:'...'}[/url][url="{$product.link}"][img=%7B$link-%3EgetImageLink%28$product.link_rewrite,%20$product.id_image,%20%27home%27%29%7D][/url] {if $cookie->isLogged()} {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}{else} {/if} [url="{$product.link}"]{l s='View' mod='homefeatured'}[/url] {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} [url="%7B$link-%3EgetPageLink%28%27cart.php%27%29%7D?qty=1&id_product=%7B$product.id_product%7D&token=%7B$static_token%7D&add"]{l s='Add to cart' mod='homefeatured'}[/url] {else} {l s='Add to cart' mod='homefeatured'} {/if} {else} {/if} {else} {l s='You must to be logged to see prices and purchase options' mod='homefeatured'} {/if} {/foreach} [/list]{else} {l s='No featured products' mod='homefeatured'}{/if} Link al file modificato (visto che il forum sballa tutto) http://cinf.dyndns.org/ps/homefeatured.zip Alla riga 31 del file trovi la corretta modalità per inserire i testi che poi tradurrai dal pannello di PS (amministrazione - strumenti - traduzioni) non ho proprio trovato la possibilità per tradurre... ho guardato sia nelle traduzioni per front office, che in quelle di moduli (anche se non è un modulo)... ho provato a cercare anche nei vari file direttamente da ftp... ma devo magari aggiungere qualcosa direttamente in qualche .php? mi potresti perfavore dare un suggerimento.... e poi anche per il link stesso, preché il link inserito è www.miosito.it/it... io dovrei inserire anche www.miosito.it/en... www.miosito.it/fr, etc. come posso fare? è un vero casino... ti ringrazio per una risposta Link to comment Share on other sites More sharing options...
Nsfr750 Posted April 10, 2012 Share Posted April 10, 2012 mettilo cosi' <span class="form_produkt"><a href="autenticazione?back=my-account.php">{l s='Devi essere registrato per vedere i prezzi e le opzioni acquisto' mod='homefeatured'}</a></span> avendo modificato homefeatured (che e' un modulo) le traduzioni le fai dalle traduzioni moduli Link to comment Share on other sites More sharing options...
eleit Posted April 10, 2012 Share Posted April 10, 2012 mettilo cosi' <span class="form_produkt"><a href="autenticazione?back=my-account.php">{l s='Devi essere registrato per vedere i prezzi e le opzioni acquisto' mod='homefeatured'}</a></span> avendo modificato homefeatured (che e' un modulo) le traduzioni le fai dalle traduzioni moduli e quando parliamo di product.tpl e product-list.tpl secondo te esiste il modo per tradurre? Link to comment Share on other sites More sharing options...
eleit Posted April 10, 2012 Share Posted April 10, 2012 mettilo cosi' <span class="form_produkt"><a href="autenticazione?back=my-account.php">{l s='Devi essere registrato per vedere i prezzi e le opzioni acquisto' mod='homefeatured'}</a></span> avendo modificato homefeatured (che e' un modulo) le traduzioni le fai dalle traduzioni moduli ho combinato un guaio - faccendo come hai suggerito tu per il link e visto che url per autnticazione in altre lingue non era autenticazione, ma authentication, sono andata nelle url e ho messo autenticazione anche per altre lingue.. e... il sito mi è partito, non riesco più ad accedere, mi tira fuori internal server error.. mi sai dire quale file devo cambaire per riscrivere le url? che disperazione.... Link to comment Share on other sites More sharing options...
eleit Posted April 10, 2012 Share Posted April 10, 2012 ho combinato un guaio - faccendo come hai suggerito tu per il link e visto che url per autnticazione in altre lingue non era autenticazione, ma authentication, sono andata nelle url e ho messo autenticazione anche per altre lingue.. e... il sito mi è partito, non riesco più ad accedere, mi tira fuori internal server error.. mi sai dire quale file devo cambaire per riscrivere le url? che disperazione.... questa - l'ho risolta, ho rigenerato htaccess e adesso funziona in tutte le lingue con autenticazione, perfetto, rimane solo il problema della traduzione della frase stessa in product-list.tpl e product.tpl... Link to comment Share on other sites More sharing options...
Nsfr750 Posted April 10, 2012 Share Posted April 10, 2012 product.tpl cerca: <span id="our_price_display">{convertPrice price=$productPrice}</span> {if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if} e lo sostituisci con: {if $logged} <span id="our_price_display">{convertPrice price=$productPrice}</span> {if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if} {/if} cerca: <p{if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE} style="display: none;"{/if} id="add_to_cart" class="buttons_bottom_block"><input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /></p> e sostituisci con: {if $logged} <p{if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE} style="display: none;"{/if} id="add_to_cart" class="buttons_bottom_block"><input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /></p> {/if} product-list.tpl Cerca: {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br />{/if} Sostituisci con: {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}{if $logged}<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}{/if}</span><br />{/if} Cerca: <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Add to cart'}">{l s='Add to cart'}</a> Sostituisci con: {if $logged} <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Add to cart'}">{l s='Add to cart'}</a> {/if} Cerca: <span class="exclusive">{l s = 'Add to cart'}</span> Sostituisci con: {if $logged} <span class="exclusive">{ls = 'Add to cart'}</span> {/If} Salvi i nuovi file e poi gestisci le traduzioni da traduzione FrontOffice Link to comment Share on other sites More sharing options...
eleit Posted April 10, 2012 Share Posted April 10, 2012 product.tpl cerca: <span id="our_price_display">{convertPrice price=$productPrice}</span> {if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if} e lo sostituisci con: {if $logged} <span id="our_price_display">{convertPrice price=$productPrice}</span> {if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if} {/if} cerca: <p{if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE} style="display: none;"{/if} id="add_to_cart" class="buttons_bottom_block"><input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /></p> e sostituisci con: {if $logged} <p{if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE} style="display: none;"{/if} id="add_to_cart" class="buttons_bottom_block"><input type="submit" name="Submit" value="{l s='Add to cart'}" class="exclusive" /></p> {/if} product-list.tpl Cerca: {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br />{/if} Sostituisci con: {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}{if $logged}<span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}{/if}</span><br />{/if} Cerca: <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Add to cart'}">{l s='Add to cart'}</a> Sostituisci con: {if $logged} <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Add to cart'}">{l s='Add to cart'}</a> {/if} Cerca: <span class="exclusive">{l s = 'Add to cart'}</span> Sostituisci con: {if $logged} <span class="exclusive">{ls = 'Add to cart'}</span> {/If} Salvi i nuovi file e poi gestisci le traduzioni da traduzione FrontOffice grazie per la risposta. ok, e fin qua è chiaro, si possono tradurre le cose che sono già presenti... io, invece ho aggiunto (come da tuo primo suggerimento): <span class="form_produkt"><a href="autenticazione?back=my-account.php" style="color:#36C; font-size:9px; font-style: bold;">REGISTRATI PER VEDERE I PREZZI</a></span><br /> ed è proprio qua il problema - non so come tradurre questa frase (REGISTRATI PER VEDERE I PREZZI) in varie lingue, perché non esiste... magari c'è il modo di creare questa frase nel file .php direttamente per tradurla poi, ma non riesco a capire se e come si può fare, esiste il modo? grazie! Link to comment Share on other sites More sharing options...
Nsfr750 Posted April 10, 2012 Share Posted April 10, 2012 devi mettere {l s='Devi essere registrato per vedere i prezzi e le opzioni acquisto' mod='homefeatured'} al posto di REGISTRATI PER VEDERE I PREZZI Link to comment Share on other sites More sharing options...
Totti Posted April 10, 2012 Share Posted April 10, 2012 Ottimo...ma non si può trasformarlo in un modulo ? Link to comment Share on other sites More sharing options...
Nsfr750 Posted April 11, 2012 Share Posted April 11, 2012 se sei capace, hai voglia e tempo certo che si puo' Link to comment Share on other sites More sharing options...
Totti Posted April 11, 2012 Share Posted April 11, 2012 Magari se era aspx gia lo avevo fatto. Link to comment Share on other sites More sharing options...
eleit Posted April 11, 2012 Share Posted April 11, 2012 devi mettere {l s='Devi essere registrato per vedere i prezzi e le opzioni acquisto' mod='homefeatured'} al posto di REGISTRATI PER VEDERE I PREZZI ci sono riuscita! semplicemente in: <span class="form_produkt"><a href="http://www.TUOSITO.it/it/autenticazione?back=my-account.php">Devi essere registrato per vedere i prezzi e le opzioni acquisto</a></span> la frase (o qualsiasi altra): Devi essere registrato per vedere i prezzi e le opzioni acquisto bisogna metterla così: {l s='Devi essere registrato per vedere i prezzi e le opzioni acquisto'} in questo modo si creerà la possibilità di tradurla (spunta tra le frasi da tradurre in relazione al .tpl dove è stata introdotta) magari per qualcuno è ovvio, adesso lo è anche per me... ma forse a qualcuno può essere utile. ti ringrazio per i tuoi suggerimenti e disponibilità! 1 Link to comment Share on other sites More sharing options...
eleit Posted April 12, 2012 Share Posted April 12, 2012 Ottimo...ma non si può trasformarlo in un modulo ? si, come modulo sarebbe ottimo... mi sembra che c'è già a pagamento (ma non si può tradurre in più lingue) Link to comment Share on other sites More sharing options...
Totti Posted April 12, 2012 Share Posted April 12, 2012 Link ? Link to comment Share on other sites More sharing options...
stekko Posted April 26, 2012 Share Posted April 26, 2012 questa - l'ho risolta, ho rigenerato htaccess e adesso funziona in tutte le lingue con autenticazione, perfetto, rimane solo il problema della traduzione della frase stessa in product-list.tpl e product.tpl... Ciao eleit, potresti dirmi come hai fatto a risolvere il problema dei prezzi? io non ci riesco, sto cambiando i file da ore ma non succede praticamente nulla! Link to comment Share on other sites More sharing options...
stekko Posted April 26, 2012 Share Posted April 26, 2012 H risolto grazie Ciao potresti dirmi come hai fatto per nascondere i prezzi? Ho provato a seguire le indicazioni ma i prezzi compaiono lo stesso... Link to comment Share on other sites More sharing options...
Hipo76 Posted May 24, 2012 Share Posted May 24, 2012 tutto funziona,l'unico problema sta nei prodotti in offerta,se vai nella scheda del prodotto visualizza il prezzo vecchio con la relativa percentuale di sconto,lo fa vedere solo per i prodotti in offerta. forse si deve modificare anche qualche altro file,chi sa quale? Link to comment Share on other sites More sharing options...
Nsfr750 Posted May 25, 2012 Share Posted May 25, 2012 devi modificare il prices-drop.tpl Link to comment Share on other sites More sharing options...
Hipo76 Posted May 25, 2012 Share Posted May 25, 2012 ho provato a modificare il file che hai detto mettendo " {if $logged} " ma quando vado nella scheda del prodotto il prezzo di vendita reale non lo fa vedere (ma non lo faceva vedere nemmeno prima),ma fa vedere il prezzo vecchio con il relativo sconto x l'offerta. vorrei metterti l'immagine ma non so come si mette qui Link to comment Share on other sites More sharing options...
Hipo76 Posted May 25, 2012 Share Posted May 25, 2012 forse non mi sono spiegato bene all'inizio,il file che mi hai fatto modificare tu e' per la pagina "offerte riduzioni di prezzo" ,ma il problema e' nella scheda dei prodotti, quando apri un prodotto sul lato destro dell'immagine del prodotto escono 2 box,uno dove c'e' la descrizione del prodotto ecc con il tasto "maggiori dettagli" e sotto questo c'e' il box con il prezzo e dove puoi scegliere la quantita',bene se il prodotto e' in offerta fa vedere il vecchio prezzo barrato e la quantita' di sconto x l'offerta 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