Arkkangel Posted February 28, 2020 Share Posted February 28, 2020 Hola, soy nuevo en Prestashop y estoy aplicando a un sitio este módulo gratuito, lo que ocurres es que a pesar de estar el sitio entero configurado para que los precios se muestren sin IVA, el módulo les agrega el iva a los precios de los productos. Estuve modificando la plantilla slide.tpl para que solo muestre los precios cuando se está logueado pero no consiguo dar con la fórmula para que los precios que muestres sean sin IVA, les agradecería si alguno me puede orientar. La ínea que parece definir el precio es esta: {convertPrice price={Product::getPriceStatic($item.id_product|escape:'htmlall':'UTF-8') }} y la secuencia completa que determina la visualización de precios es esta: {$lb = {convertPrice price={$item.price|escape:'htmlall':'UTF-8'}*$item.rate/100+$item.price|escape:'htmlall':'UTF-8'}} {$lb2 = {convertPrice price={Product::getPriceStatic($item.id_product|escape:'htmlall':'UTF-8')}}} {if $lb2 !== $lb} {$lb3 = round({$item.price|escape:'htmlall':'UTF-8'}*$item.rate/100+$item.price,2)} {$lb4 = round(Product::getPriceStatic($item.id_product),2)|escape:'htmlall':'UTF-8'} {if $lb3 > $lb4} <span class="pro_sale">-{round(($lb3-$lb4)*100/$lb3)|escape:'htmlall':'UTF-8'}%</span> {/if} {/if} <a class='quiss' rel="{BaProductsCarousel::getUrlFix($item.id_product|escape:'htmlall':'UTF-8')}" title=""><i class="fa fa-eye"></i></a> <div class="ad_info_pro"> <h4><a href="{BaProductsCarousel::getUrlFix($item.id_product|escape:'htmlall':'UTF-8')}">{$item.name}</a></h4> {if $price == 1 && $logged } <span class="price_pro"/> {convertPrice price={Product::getPriceStatic($item.id_product|escape:'htmlall':'UTF-8') }} </span> {if $lb2 !== $lb && $item.price > 0} <span class="price_old">{$lb|escape:'htmlall':'UTF-8'}</span> {/if} {/if} Les agradecería una mano. Saludos. 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