mariorr Posted March 18, 2014 Share Posted March 18, 2014 (edited) Hola, alguna manera de ocultar el precio en las categorías. Theme: default, Prestashop: 1.5.6.2. Muchas gracias Un saludo Edited March 18, 2014 by mariorr (see edit history) Link to comment Share on other sites More sharing options...
Paula Martinez Posted March 18, 2014 Share Posted March 18, 2014 (edited) Hola, Mario, ¿No los quieres mostrar en el listado de productos (fichero product-list.tpl) porque no los muestras en toda la web, o no los quieres mostrar en el listado de productos, pero que si se vean en el resto de secciones? Edited March 18, 2014 by Paula Martinez (see edit history) Link to comment Share on other sites More sharing options...
mariorr Posted March 18, 2014 Author Share Posted March 18, 2014 No quiero mostrarlos al pinchar en las categorías si en el resto de la web. Link to comment Share on other sites More sharing options...
Paula Martinez Posted March 18, 2014 Share Posted March 18, 2014 (edited) Quizas cambiando esto: {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="on_sale">{l s='On sale!'}</span> {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="discount">{l s='Reduced price!'}</span>{/if} {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} <div class="content_price"> {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} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability">{if ($product.allow_oosp || $product.quantity > 0)}{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}{l s='Product available with different options'}{else}<span class="warning_inline">{l s='Out of stock'}</span>{/if}</span>{/if} </div> {if isset($product.online_only) && $product.online_only}<span class="online_only">{l s='Online only'}</span>{/if} {/if} por {*{if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="on_sale">{l s='On sale!'}</span> {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="discount">{l s='Reduced price!'}</span>{/if} {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} <div class="content_price"> {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} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability">{if ($product.allow_oosp || $product.quantity > 0)}{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}{l s='Product available with different options'}{else}<span class="warning_inline">{l s='Out of stock'}</span>{/if}</span>{/if} </div> {if isset($product.online_only) && $product.online_only}<span class="online_only">{l s='Online only'}</span>{/if} {/if} *} Asi quizas se oculta para todos los listados de productos. O si es solo para el listado de productos por categorías, quizas asi: {if $page_name!='category'} {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="on_sale">{l s='On sale!'}</span> {elseif isset($product.reduction) && $product.reduction && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}<span class="discount">{l s='Reduced price!'}</span>{/if} {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} <div class="content_price"> {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} {if isset($product.available_for_order) && $product.available_for_order && !isset($restricted_country_mode)}<span class="availability">{if ($product.allow_oosp || $product.quantity > 0)}{l s='Available'}{elseif (isset($product.quantity_all_versions) && $product.quantity_all_versions > 0)}{l s='Product available with different options'}{else}<span class="warning_inline">{l s='Out of stock'}</span>{/if}</span>{/if} </div> {if isset($product.online_only) && $product.online_only}<span class="online_only">{l s='Online only'}</span>{/if} {/if} {/if} Edited March 18, 2014 by Paula Martinez (see edit history) Link to comment Share on other sites More sharing options...
Paula Martinez Posted March 18, 2014 Share Posted March 18, 2014 (edited) Antes se me ha cortado codigo al pegarlo, mira ver ahora... Edited March 18, 2014 by Paula Martinez (see edit history) Link to comment Share on other sites More sharing options...
mariorr Posted March 18, 2014 Author Share Posted March 18, 2014 (edited) Hola Paula, gracias por tu respuesta, ya está resuelto . Cambié <span class="price" style="display: inline;"> Por <span class="price" style="display: none;"> Muchas gracias Edited March 18, 2014 by mariorr (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts