Jump to content
il15

SOLUCIONADO: Colocar la palabra IVA INCLUIDO en la ficha de los productos

Recommended Posts

¿Se puede colocar a lado del precio de cada articulo que el IVA está incluido?

 

Llevo un año con los precios sin IVA y me gustaría que con este cambio los clientes se den cuenta que ahora el IVA está incluido en el precio.

Edited by il15 (see edit history)

Share this post


Link to post
Share on other sites

¿Se puede colocar a lado del precio de cada articulo que el IVA está incluido?

 

Llevo un año con los precios sin IVA y me gustaría que con este cambio los clientes se den cuenta que ahora el IVA está incluido en el precio.

 

Hola, si estas usando la plantilla default, quizás no te aparezca la palabra "Iva incluido" por que la tienes comentada en el product.tpl

 

En el fichero:

 

 

/themes/default/product.tpl

 

Busca esto:

 

<!--{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}-->

 

Y lo dejas asi:

 

{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}

 

Tambien en el mismo, fichero, busca esto:

 

<!-- {if $tax_enabled && $display_tax_label == 1}
   {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}
  {/if} -->

 

 

Y dejalo asi:

 

{if $tax_enabled && $display_tax_label == 1}
   {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}
  {/if}

  • Like 4

Share this post


Link to post
Share on other sites

Nadie: ¿No existe un ruta a través del backoffice para realizar esto?

 

Hola, es que la plantilla "default" tiene comentado el codigo de impresión de la palabra "Iva incluido" o "Iva no incluido" en la ficha de producto, en el product.tpl

 

En el back-office, tu puedes decidir si mostrar el precio con iva y sin iva, pero la palabra literal "iva incluido" o "iva no incluido" no se te mostrara en la ficha del producto, si no tienes la linea descomentada, y la manera de descomentarla es como te he comentado.

 

En la ficha del producto esta comentada la palabra, no es culpa mía ) :P

  • Like 3

Share this post


Link to post
Share on other sites

Excelente explicación, lo preguntaba con ese fin, me sonaba que había algo que aprender.

Share this post


Link to post
Share on other sites

Excelente explicación, lo preguntaba con ese fin, me sonaba que había algo que aprender.

 

Un placer ayudarte y servirte!

 

Un saludo y recuerda que estaremos en el foro, para guiarte por este mundo oscuro y tenebroso.

 

 

PD: Estimado il15, colocas el tema solucionado, pero ni siquiera te pasas por el foro, a decir nada, :(

Share this post


Link to post
Share on other sites

Hola, tengo el mismo problema, no me aparece la leyenda IVA incluido. La forma para solucionarlo esta perfectamente explicada pero a mi no me aparecen las lineas esas, ni comentadas ni sin comentar.

 

Uso la version 1.5.1, me pregunto si en esta version no apareceran las lineas de codigo estas, y si no aparecen, supongo que podria copiar el codigo de aqui mismo y pegarlo, pero me podriais indicar donde exactamente?

 

Gracias.

 

P.D. Copio aqui el codigo de todo el archivo por si sirve de ayuda.

 

{* * 2007-2012 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 license@prestashop.com 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 * @copyright 2007-2012 PrestaShop SA * @version Release: $Revision: 6625 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {include file="$tpl_dir./errors.tpl"} {if $errors|@count == 0}
// <![CDATA[
// PrestaShop internal settings
var currencySign = '{$currencySign|html_entity_decode:2:"UTF-8"}';
var currencyRate = '{$currencyRate|floatval}';
var currencyFormat = '{$currencyFormat|intval}';
var currencyBlank = '{$currencyBlank|intval}';
var taxRate = {$tax_rate|floatval};
var jqZoomEnabled = {if $jqZoomEnabled}true{else}false{/if};
//JS Hook
var oosHookJsCodeFunctions = new Array();
// Parameters
var id_product = '{$product->id|intval}';
var productHasAttributes = {if isset($groups)}true{else}false{/if};
var quantitiesDisplayAllowed = {if $display_qties == 1}true{else}false{/if};
var quantityAvailable = {if $display_qties == 1 && $product->quantity}{$product->quantity}{else}0{/if};
var allowBuyWhenOutOfStock = {if $allow_oosp == 1}true{else}false{/if};
var availableNowValue = '{$product->available_now|escape:'quotes':'UTF-8'}';
var availableLaterValue = '{$product->available_later|escape:'quotes':'UTF-8'}';
var productPriceTaxExcluded = {$product->getPriceWithoutReduct(true)|default:'null'} - {$product->ecotax};
var reduction_percent = {if $product->specificPrice AND $product->specificPrice.reduction AND $product->specificPrice.reduction_type == 'percentage'}{$product->specificPrice.reduction*100}{else}0{/if};
var reduction_price = {if $product->specificPrice AND $product->specificPrice.reduction AND $product->specificPrice.reduction_type == 'amount'}{$product->specificPrice.reduction|floatval}{else}0{/if};
var specific_price = {if $product->specificPrice AND $product->specificPrice.price}{$product->specificPrice.price}{else}0{/if};
var product_specific_price = new Array();
{foreach from=$product->specificPrice key='key_specific_price' item='specific_price_value'}
product_specific_price['{$key_specific_price}'] = '{$specific_price_value}';
{/foreach}
var specific_currency = {if $product->specificPrice AND $product->specificPrice.id_currency}true{else}false{/if};
var group_reduction = '{$group_reduction}';
var default_eco_tax = {$product->ecotax};
var ecotaxTax_rate = {$ecotaxTax_rate};
var currentDate = '{$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'}';
var maxQuantityToAllowDisplayOfLastQuantityMessage = {$last_qties};
var noTaxForThisProduct = {if $no_tax == 1}true{else}false{/if};
var displayPrice = {$priceDisplay};
var productReference = '{$product->reference|escape:'htmlall':'UTF-8'}';
var productAvailableForOrder = {if (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE}'0'{else}'{$product->available_for_order}'{/if};
var productShowPrice = '{if !$PS_CATALOG_MODE}{$product->show_price}{else}0{/if}';
var productUnitPriceRatio = '{$product->unit_price_ratio}';
var idDefaultImage = {if isset($cover.id_image_only)}{$cover.id_image_only}{else}0{/if};
var stock_management = {$stock_management|intval};
{if !isset($priceDisplayPrecision)}
{assign var='priceDisplayPrecision' value=2}
{/if}
{if !$priceDisplay || $priceDisplay == 2}
{assign var='productPrice' value=$product->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision)}
{assign var='productPriceWithoutRedution' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL)}
{elseif $priceDisplay == 1}
{assign var='productPrice' value=$product->getPrice(false, $smarty.const.NULL, $priceDisplayPrecision)}
{assign var='productPriceWithoutRedution' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)}
{/if}
var productPriceWithoutRedution = '{$productPriceWithoutRedution}';
var productPrice = '{$productPrice}';
// Customizable field
var img_ps_dir = '{$img_ps_dir}';
var customizationFields = new Array();
{assign var='imgIndex' value=0}
{assign var='textFieldIndex' value=0}
{foreach from=$customizationFields item='field' name='customizationFields'}
{assign var="key" value="pictures_`$product->id`_`$field.id_customization_field`"}
customizationFields[{$smarty.foreach.customizationFields.index|intval}] = new Array();
customizationFields[{$smarty.foreach.customizationFields.index|intval}][0] = '{if $field.type|intval == 0}img{$imgIndex++}{else}textField{$textFieldIndex++}{/if}';
customizationFields[{$smarty.foreach.customizationFields.index|intval}][1] = {if $field.type|intval == 0 && isset($pictures.$key) && $pictures.$key}2{else}{$field.required|intval}{/if};
{/foreach}
// Images
var img_prod_dir = '{$img_prod_dir}';
var combinationImages = new Array();
{if isset($combinationImages)}
{foreach from=$combinationImages item='combination' key='combinationId' name='f_combinationImages'}
 combinationImages[{$combinationId}] = new Array();
 {foreach from=$combination item='image' name='f_combinationImage'}
  combinationImages[{$combinationId}][{$smarty.foreach.f_combinationImage.index}] = {$image.id_image|intval};
 {/foreach}
{/foreach}
{/if}
combinationImages[0] = new Array();
{if isset($images)}
{foreach from=$images item='image' name='f_defaultImages'}
 combinationImages[0][{$smarty.foreach.f_defaultImages.index}] = {$image.id_image};
{/foreach}
{/if}
// Translations
var doesntExist = '{l s='This combination does not exist for this product. Please choose another.' js=1}';
var doesntExistNoMore = '{l s='This product is no longer in stock' js=1}';
var doesntExistNoMoreBut = '{l s='with those attributes but is available with others' js=1}';
var uploading_in_progress = '{l s='Uploading in progress, please wait...' js=1}';
var fieldRequired = '{l s='Please fill in all required fields, then save the customization.' js=1}';
{if isset($groups)}
// Combinations
{foreach from=$combinations key=idCombination item=combination}
 var specific_price_combination = new Array();
 specific_price_combination['reduction_percent'] = {if $combination.specific_price AND $combination.specific_price.reduction AND $combination.specific_price.reduction_type == 'percentage'}{$combination.specific_price.reduction*100}{else}0{/if};
 specific_price_combination['reduction_price'] = {if $combination.specific_price AND $combination.specific_price.reduction AND $combination.specific_price.reduction_type == 'amount'}{$combination.specific_price.reduction}{else}0{/if};
 specific_price_combination['price'] = {if $combination.specific_price AND $combination.specific_price.price}{$combination.specific_price.price}{else}0{/if};
 specific_price_combination['reduction_type'] = '{if $combination.specific_price}{$combination.specific_price.reduction_type}{/if}';
 addCombination({$idCombination|intval}, new Array({$combination.list}), {$combination.quantity}, {$combination.price}, {$combination.ecotax}, {$combination.id_image}, '{$combination.reference|addslashes}', {$combination.unit_impact}, {$combination.minimal_quantity}, '{$combination.available_date}', specific_price_combination);
{/foreach}
{/if}
{if isset($attributesCombinations)}
// Combinations attributes informations
var attributesCombinations = new Array();
{foreach from=$attributesCombinations key=id item=aC}
 tabInfos = new Array();
 tabInfos['id_attribute'] = '{$aC.id_attribute|intval}';
 tabInfos['attribute'] = '{$aC.attribute}';
 tabInfos['group'] = '{$aC.group}';
 tabInfos['id_attribute_group'] = '{$aC.id_attribute_group|intval}';
 attributesCombinations.push(tabInfos);
{/foreach}
{/if}
//]]>
{include file="$tpl_dir./breadcrumb.tpl"} {if isset($adminActionDisplay) && $adminActionDisplay} {l s='This product is not visible to your customers.'}

{/if} {if isset($confirmation) && $confirmation} {$confirmation}
{/if} {if $have_image} {l s='View full size'} {else} {l s='View full size'} {/if}
{if isset($images) && count($images) > 0} {if isset($images) && count($images) > 3}{l s='Previous'}{/if} {if isset($images)} {foreach from=$images item=image name=thumbnails} {assign var=imageIds value="`$product->id`-`$image.id_image`"}
{/foreach} {/if}

{if isset($images) && count($images) > 3}{l s='Next'}{/if}
{/if} {if isset($images) && count($images) > 1} {l s='Display all pictures'}
{/if} {if $HOOK_EXTRA_LEFT}{$HOOK_EXTRA_LEFT}{/if} {l s='Print'}
{if $have_image && !$jqZoomEnabled} {/if}
{$product->name|escape:'htmlall':'UTF-8'}
{if $product->description_short OR $packItems|@count > 0} {if $product->description_short} {$product->description_short}
{/if} {if $product->description} {l s='More details'}
{/if} {if $packItems|@count > 0} {l s='Pack content'}
{foreach from=$packItems item=packItem} {$packItem.pack_quantity} x {$packItem.name|escape:'htmlall':'UTF-8'} {$packItem.description_short}
{/foreach}
{/if}
{/if} {*{if isset($colors) && $colors} {l s='Pick a color:' js=1}
{foreach from=$colors key='id_attribute' item='color'} {if file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')}{/if}
{/foreach}

{/if}*} {if ($product->show_price AND !isset($restricted_country_mode)) OR isset($groups) OR $product->reference OR (isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS)} quantity > 0}class="hidden"{/if} action="{$link->getPageLink('cart')}" method="post">
{if isset($groups)} {foreach from=$groups key=id_attribute_group item=group} {if $group.attributes|@count} {$group.name|escape:'htmlall':'UTF-8'} : {assign var="groupName" value="group_$id_attribute_group"} {if ($group.group_type == 'select')} {$group_attribute|escape:'htmlall':'UTF-8'} {elseif ($group.group_type == 'color')} {assign var="default_colorpicker" value=""} {foreach from=$group.attributes key=id_attribute item=group_attribute} {if file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')}
{/if} {if ($group.default == $id_attribute)} {$default_colorpicker = $id_attribute} {/if} {/foreach}
{elseif ($group.group_type == 'radio')} {foreach from=$group.attributes key=id_attribute item=group_attribute} {$group_attribute|escape:'htmlall':'UTF-8'}
{/foreach} {/if}
{/if} {/foreach}
{/if} reference}style="display: none;"{/if}> {l s='Reference:'} {$product->reference|escape:'htmlall':'UTF-8'}
quantity <= 0) OR $virtual OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> {l s='Quantity:'} minimal_quantity > 1}onkeyup="checkMinimalQuantity({$product->minimal_quantity});"{/if} />
minimal_quantity <= 1 OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> {l s='This product is not sold individually. You must select at least'} {$product->minimal_quantity} {l s='quantity for this product.'}
{if $product->minimal_quantity > 1}
   checkMinimalQuantity();
  {/if} quantity <= 0 && !$product->available_later && $allow_oosp) OR ($product->quantity > 0 && !$product->available_now) OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}> {l s='Availability:'} quantity <= 0} class="warning_inline"{/if}> {if $product->quantity <= 0}{if $allow_oosp}{$product->available_later}{else}{l s='This product is no longer in stock'}{/if}{else}{$product->available_now}{/if}
{if ($display_qties == 1 && !$PS_CATALOG_MODE && $product->available_for_order)} quantity <= 0} style="display: none;"{/if}> {$product->quantity|intval} quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='item in stock'} quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='items in stock'}
{/if} quantity > 0} style="display: none;"{/if}> {$HOOK_PRODUCT_OOS}
quantity > $last_qties OR $product->quantity <= 0) OR $allow_oosp OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none"{/if} >{l s='Warning: Last items in stock!'}

{if $product->show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} {if $product->online_only} {l s='Online only'}
{/if} {if !$priceDisplay || $priceDisplay == 2} {assign var='productPrice' value=$product->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision)} {assign var='productPriceWithoutRedution' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL)} {elseif $priceDisplay == 1} {assign var='productPrice' value=$product->getPrice(false, $smarty.const.NULL, $priceDisplayPrecision)} {assign var='productPriceWithoutRedution' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)} {/if} {if $priceDisplay >= 0 && $priceDisplay <= 2} {convertPrice price=$productPrice} {/if}
{if $product->on_sale} {l s='On sale!'} {elseif $product->specificPrice AND $product->specificPrice.reduction AND $productPriceWithoutRedution > $productPrice} {l s='Reduced price!'} {/if} {if $priceDisplay == 2}
{convertPrice price=$product->getPrice(false, $smarty.const.NULL)} {l s='tax excl.'} {/if}
specificPrice OR $product->specificPrice.reduction_type != 'percentage'} style="display:none;"{/if}>{if $product->specificPrice AND $product->specificPrice.reduction_type == 'percentage'}-{$product->specificPrice.reduction*100}%{/if}
specificPrice OR $product->specificPrice.reduction_type != 'amount' && $product->specificPrice.reduction|intval ==0} style="display:none"{/if}>{if $product->specificPrice AND $product->specificPrice.reduction_type == 'amount' && $product->specificPrice.reduction|intval !=0}-{convertPrice price=$product->specificPrice.reduction|floatval}{/if}
{if $product->specificPrice AND $product->specificPrice.reduction} {if $priceDisplay >= 0 && $priceDisplay <= 2} {if $productPriceWithoutRedution > $productPrice} {convertPrice price=$productPriceWithoutRedution} {/if} {/if}
{/if} {if $packItems|@count && $productPrice < $product->getNoPackPrice()} {l s='instead of'} {convertPrice price=$product->getNoPackPrice()}

{/if} {if $product->ecotax != 0} {l s='include'} {if $priceDisplay == 2}{$ecotax_tax_exc|convertAndFormatPrice}{else}{$ecotax_tax_inc|convertAndFormatPrice}{/if} {l s='for green tax'} {if $product->specificPrice AND $product->specificPrice.reduction}
{l s='(not impacted by the discount)'} {/if}
{/if} {if !empty($product->unity) && $product->unit_price_ratio > 0.000000} {math equation="pprice / punit_price" pprice=$productPrice punit_price=$product->unit_price_ratio assign=unit_price} {convertPrice price=$unit_price} {l s='per'} {$product->unity|escape:'htmlall':'UTF-8'}
{/if} {*close if for show price*} {/if} {if (!$allow_oosp && $product->quantity <= 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE} {l s='Add to cart'} {else}
{/if} {if isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS}{$HOOK_PRODUCT_ACTIONS}{/if}

{/if} {if isset($HOOK_EXTRA_RIGHT) && $HOOK_EXTRA_RIGHT}{$HOOK_EXTRA_RIGHT}{/if}

{if (isset($quantity_discounts) && count($quantity_discounts) > 0)} {l s='Quantity discount'}

{l s='product'}
{l s='from (qty)'}
{l s='discount'}
{foreach from=$quantity_discounts item='quantity_discount' name='quantity_discounts'} {if (isset($quantity_discount.attributes) && ($quantity_discount.attributes))} {$product->getProductName($quantity_discount.id_product, $quantity_discount.id_product_attribute)} {else} {$product->getProductName($quantity_discount.id_product)} {/if}
{$quantity_discount.quantity|intval}
{if $quantity_discount.price >= 0 OR $quantity_discount.reduction_type == 'amount'} -{convertPrice price=$quantity_discount.real_value|floatval} {else} -{$quantity_discount.real_value|floatval}% {/if}
{/foreach}

{/if} {if isset($HOOK_PRODUCT_FOOTER) && $HOOK_PRODUCT_FOOTER}{$HOOK_PRODUCT_FOOTER}{/if} {if (isset($product) && $product->description) || (isset($features) && $features) || (isset($accessories) && $accessories) || (isset($HOOK_PRODUCT_TAB) && $HOOK_PRODUCT_TAB) || (isset($attachments) && $attachments) || isset($product) && $product->customizable} {if $product->description}{l s='More info'}
{/if} {if $features}{l s='Data sheet'}
{/if} {if $attachments}{l s='Download'}
{/if} {if isset($accessories) AND $accessories}{l s='Accessories'}
{/if} {if isset($product) && $product->customizable}{l s='Product customization'}
{/if} {$HOOK_PRODUCT_TAB}
{if isset($product) && $product->description} {$product->description}
{/if} {if isset($features) && $features} {foreach from=$features item=feature} {if isset($feature.value)} {$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'}
{/if} {/foreach}
{/if} {if isset($attachments) && $attachments} {foreach from=$attachments item=attachment} {$attachment.name|escape:'htmlall':'UTF-8'}
{$attachment.description|escape:'htmlall':'UTF-8'}
{/foreach}
{/if} {if isset($accessories) AND $accessories} {foreach from=$accessories item=accessory name=accessories_list} {if ($accessory.allow_oosp || $accessory.quantity > 0) AND $accessory.available_for_order AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} {assign var='accessoryLink' value=$link->getProductLink($accessory.id_product, $accessory.link_rewrite, $accessory.category)} {$accessory.name|escape:'htmlall':'UTF-8'} {if $accessory.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE} - {if $priceDisplay != 1}{displayWtPrice p=$accessory.price}{else}{displayWtPrice p=$accessory.price_tax_exc}{/if}{/if}
{$accessory.description_short|strip_tags|truncate:400:'...'}

{l s='View'} {l s='Add to cart'}
{/if} {/foreach}

{/if} {if isset($product) && $product->customizable} {l s='After saving your customized product, remember to add it to your cart.'} {if $product->uploadable_files}
{l s='Allowed file formats are: GIF, JPG, PNG'}{/if}
{if $product->uploadable_files|intval} {l s='Pictures'}
{counter start=0 assign='customizationField'} {foreach from=$customizationFields item='field' name='customizationFields'} {if $field.type == 0} {assign var='key' value='pictures_'|cat:$product->id|cat:'_'|cat:$field.id_customization_field} {if isset($pictures.$key)}
{/if} {if !empty($field.name)}{$field.name}{else}{l s='Please select an image file from your hard drive'}{/if}{if $field.required}*{/if}

{counter} {/if} {/foreach}

{/if} {if $product->text_fields|intval} {l s='Text'}
{counter start=0 assign='customizationField'} {foreach from=$customizationFields item='field' name='customizationFields'} {if $field.type == 1} {assign var='key' value='textFields_'|cat:$product->id|cat:'_'|cat:$field.id_customization_field} {if !empty($field.name)}{$field.name}{/if}{if $field.required}*{/if} {if isset($textFields.$key)}{$textFields.$key|stripslashes}{/if}
{counter} {/if} {/foreach}

{/if}

* {l s='required fields'}

{/if} {if isset($HOOK_PRODUCT_TAB_CONTENT) && $HOOK_PRODUCT_TAB_CONTENT}{$HOOK_PRODUCT_TAB_CONTENT}{/if}

{/if} {if isset($packItems) && $packItems|@count > 0} {l s='Pack content'}
{include file="$tpl_dir./product-list.tpl" products=$packItems}
{/if} {/if}

Edited by jandrovlc (see edit history)

Share this post


Link to post
Share on other sites

Jandrovic, seguro que ese es tu archivo 'product.tpl' de la plantilla-theme "default" ?? Yo también tengo la versión 1.5.2 y efectivamente, están donde dice nadie. Lo que pasa es que se coloca con el estilo del precio y salen unas letras más grandes que le leche.

Share this post


Link to post
Share on other sites

Jandrovic, seguro que ese es tu archivo 'product.tpl' de la plantilla-theme "default" ?? Yo también tengo la versión 1.5.2 y efectivamente, están donde dice nadie. Lo que pasa es que se coloca con el estilo del precio y salen unas letras más grandes que le leche.

 

Hola Cristina, estoy prácticamente seguro que es el archivo /themes/default/poduct.tpl , yo también estoy un poco extrañado, a ver si a alguien mas le ocurre lo mismo que a mi.

Mi versión es la 1.5.1 no la 1.5.2, quizás si la actualizo lo soluciono.

 

en cuanto al problema que tienes mírate esto http://victor-rodenas.com/2012/03/20/mostrar-precios-con-iva-y-sin-iva-en-el-listado-de-productos-en-prestashop/ le pone una etiqueta span con su estilo correspondiente para darle formato al texto "iva incluido"

Share this post


Link to post
Share on other sites

Pues puede ser lo de la actualización entonces. Se la hice hace nada.

Gracias por el aporte del span. Espero que alguien te pueda ayudar!

Ciao

Share this post


Link to post
Share on other sites

ya esta claro, parece ser que era por el dreamweaver que me ocultaba los comentarios, al abrirlo con el notepad++ lo encontre a la primera.

Share this post


Link to post
Share on other sites

ya esta claro, parece ser que era por el dreamweaver que me ocultaba los comentarios, al abrirlo con el notepad++ lo encontre a la primera.

 

Me alegro de que hayas podido resolver la incidencia.

 

No se te olvide presentarte en la sección de presentaciones del foro: http://www.prestasho...resentate-aqui/

 

PD: Yo recomiendo editar los ficheros en estos casos con notepad++. (Tal como has terminado haciendo al final)

Share this post


Link to post
Share on other sites

Nadie: Hice lo recomendado en el archivo product.tlp .... pero en mi caso no está en: /themes/default/product.tpl

 

Estaba en: /themes/prestashop/product.tpl

 

Así que no sé si está correcto, y de igual forma no me muestra la palabra IVA incluido

 

El caso es: aqui.

 

Gracias!!!

Share this post


Link to post
Share on other sites

Hola, si estas usando la plantilla default, quizás no te aparezca la palabra "Iva incluido" por que la tienes comentada en el product.tpl

 

En el fichero:

 

 

/themes/default/product.tpl

 

Busca esto:

 

<!--{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}-->

 

Y lo dejas asi:

 

{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}

 

Tambien en el mismo, fichero, busca esto:

 

<!-- {if $tax_enabled && $display_tax_label == 1}
   {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}
  {/if} -->

 

 

Y dejalo asi:

 

{if $tax_enabled && $display_tax_label == 1}
   {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}
  {/if}

 

Funciona Perfectamente!! ( 1.5.3.1 ) Gracias una vez mas Nadie... No haces ver la luz al final del tunel... B)

  • Like 1

Share this post


Link to post
Share on other sites

Funciona Perfectamente!! ( 1.5.3.1 ) Gracias una vez mas Nadie... No haces ver la luz al final del tunel... B)

 

Un placer ayudarte y servirte!

 

Un saludo y recuerda que estaremos en el foro, para guiarte por este mundo oscuro y tenebroso.

Share this post


Link to post
Share on other sites

Gracias Nadie.

 

La solucion anterior sirve para la pagina de producto, en la que vemos un producto aislado.

 

Pero sabrias que codigo hay que modificar, para que aparezca la palabra "iva incluido" en la pagina de listado de productos?

 

Gracias

Share this post


Link to post
Share on other sites

Ya lo he solucionado, gracias a un post anterior de Rocky.

 

En la línea 39 de product-list.tpl (versión 1.5.4 PS)

 

 

{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}

 

 

añadir al final:

 

 

{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} {l s='iva incluido'}

  • Like 2

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More