Jump to content

(SOLUCIONADO) Añadir la palabra "desde" delante del precio de productos con combinaciones


mariorr

Recommended Posts

Hola, me gustaría añadir delante del precio la palabra "desde", pero sólo en aquellos productos que tengan combinaciones. Tengo esta solución pero me lo muestra en todos los productos.

 

En el archivo product.tpl:

{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">From: {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br />{/if}

Versión de prestashop: 1.5.6.2 | Theme: default

 

 

¿Alguien me puede ayudar?

 

Muchas gracias

 

Un saludo

 

Edited by mariorr (see edit history)
Link to comment
Share on other sites

Hola, gracias Statictic por tu respuesta, pero no me ha funcionado, he añadido lo que me sugeriste pero no me muestra la palabra "from" en ningún producto.

{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if isset($attributesCombinations) && $attributesCombinations}{l s='From:'}{/if} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br />{/if}

¿Alguna otra idea?

 

Muchas gracias

Un saludo

Link to comment
Share on other sites

Hola, la solución de Ventura me sirve porque solo lo necesito en el product list. Dejo el código por si alguien lo necesitara.

{if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}<span class="price" style="display: inline;">{if $product.id_product_attribute}{l s='From'} {/if} {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span><br /><br />{/if}

Muchas gracias a todos

Un saludo

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...