afilth Posted February 9, 2011 Share Posted February 9, 2011 Buenas,llevo toda la tarde intentándolo pero no soy con ello. Quiero que cuando listo los productos de una categoría me salga el precio anterior sin descuento, igual que pasa cuando accedes a un producto en concreto.He buscado en google en español y en inglés y he encontrado un par de cosas pero no ha habiado forma de aplicarlas, no se si por ser versiones anteriores a la 1.3.6, está claro que hay que tocar el product-list.tpl encima de la linea: {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} pero no se que poner...A ver si alguien me echa una mano.Gracias! Link to comment Share on other sites More sharing options...
4webs.es Posted February 9, 2011 Share Posted February 9, 2011 Creo que lo que buscas es esto:http://www.4webs.es/blog/mostrar-precios-rebajados-y-sin-rebajar-en-los-listados-de-prestashop Link to comment Share on other sites More sharing options...
afilth Posted February 10, 2011 Author Share Posted February 10, 2011 Buenos días,En primer lugar, gracias por respoder.Esa fue una de las páginas que estuve mirando pero no conseguí que me funcionase ese código a pesar de probar un montón de combinaciones.Donde tienes que meter ese código? Yo lo estoy poniendo dentro del right block sustituyendo lo que había y no me funciona...Dejo el código de mi product_list.tpl: > {if isset($products)} <!-- Products list --> </pre> <ul> {foreach from=$products item=product name=products} getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" width="{$homeSize.width}" height="{$homeSize.height}" /> {if $product.new == 1}{l s='new'}{/if}{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'} {$product.description_short|truncate:360:'...'|strip_tags:'UTF-8'} {if $product.on_sale} {l s='On sale!'} {elseif ($product.reduction_price != 0 || $product.reduction_percent != 0) && ($product.reduction_from == $product.reduction_to OR ($smarty.now|date_format:'%Y-%m-%d %H:%M:%S' <= $product.reduction_to && $smarty.now|date_format:'%Y-%m-%d %H:%M:%S' >= $product.reduction_from))} {l s='Price lowered!'} {/if} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} {if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Out of stock'}{/if} {if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2} {l s='Add to cart'} {else} {l s='Add to cart'} {/if} {l s='View'} {/foreach} </ul> <br> <!-- /Products list --><br>{/if A ver si me puees echar una mano...Un saludo. Link to comment Share on other sites More sharing options...
CPDA Posted February 10, 2011 Share Posted February 10, 2011 Yo tambien estoy interesado, lo probe pero tampoco fui capaz de hacerlo funcionar correctamente. Link to comment Share on other sites More sharing options...
Facundow Posted May 1, 2011 Share Posted May 1, 2011 Hola! Yo también necesito esto, alguna novedad o solución encontraron?Desde ya,Muchas Gracias! Link to comment Share on other sites More sharing options...
Recommended Posts