maestrosombrita Posted February 1, 2013 Share Posted February 1, 2013 En la Home principal tengo presente en la parte central los módulos de mejores ventas y nuevos productos y, en ambos, quiere visualizar el precio con IVA y sin IVA Para ello he añadido este código: <p class="price1">{convertPrice price=$product.price_tax_exc}{l s='without IVA' mod='blockbestsellers'}</p> <p class="price2">{convertPrice price=$product.price}{l s='with IVA' mod='blockbestsellers'}</p> Bien, en el bloque de novedades se visualiza bien, pero en el bloque de mejores ventas no se visualiza el precio sin IVA. Si puedo ver el precio con IVA además de las traducciones, pero el precio sin iva no aparece.... He comprobado el código y es idéntico. ¿Qué puede estar mal? Añado el código completo del fichero blockbestsellers.tpl <!-- MODULE Block best sellers --> <div id="best-sellers_block_right" class="block products_block"> <div class="titular"><h4><a href="{$link->getPageLink('best-sales')}" title="{l s='Top sellers' mod='blockbestsellers'}">{l s='Top sellers' mod='blockbestsellers'}</a></h4><p class"todos"><a href="{$link->getPageLink('best-sales')}" title="{l s='All best sales' mod='blockbestsellers'}">{l s='All best sales' mod='blockbestsellers'}</a></p></div> <div class="block_content" id="mejoresVentas"> {if $best_sellers|@count > 0} <ul class="product_images clearfix"> {foreach from=$best_sellers item='product' name='bestSellers'} {if $smarty.foreach.bestSellers.index < 4} <li class="{if $smarty.foreach.bestSellers.last}last_item{elseif $smarty.foreach.bestSellers.first}first_item{else} item{/if}"><a href="{$product.link}" title="{$product.legend|escape:html:'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'mejor_venta_df')}" height="{$largeSize.height}" width="{$largeSize.width}" alt="{$product.legend|escape:html:'UTF-8'}" /></a> <h5><a href="{$product.link}" title="{$product.name|escape:htmlall:'UTF-8'}">{$product.name|escape:htmlall:'UTF-8'}</a></h5> <p class="price1">{convertPrice price=$product.price_tax_exc}{l s='without IVA' mod='blockbestsellers'}</p> <p class="price2">{convertPrice price=$product.price}{l s='with IVA' mod='blockbestsellers'}</p> <p class="shipping"><a href="{$link->getCMSLink('11', 'gastos-de-envio')}">{l s='shipping cost' mod='blockbestsellers'}</a></p> </li> {/if} {/foreach} </ul> [size=4]{else}[/size] <p>{l s='No best sellers at this time' mod='blockbestsellers'}</p> {/if} </div> </div> <!-- /MODULE Block best sellers --> Link to comment Share on other sites More sharing options...
Recommended Posts