Jump to content

Poner icono de envio gratis en producto destacado


Recommended Posts

Buenas tardes comunidad, despues de todo el día mirando por el foro a ver si hay algo al respecto de este tema, me doy por vencido.

 

Querría poner como la etiqueta de nuevo, pero de envío gratuito en la lista de productos destacados.

 

No quiero ponerlo por peso ni nada por el  estilo, simplemente para los productos internacionales, tener la etiqueta de envío gratuito.

 

Espero me puedan ayudar...

 

Muchas gracias comunidad

 

Link to comment
Share on other sites

Hay un módulo para poner etiquetas a las imagenes

http://addons.prestashop.com/es/aplicaciones-front-office-prestashop-modulos/26[spam-filter]stickers-labels.html

o

http://module-presta.com/stickers-pro.html

 

Si no, podrías cambiar las imágenes y hacerlo tu con algún programa de edición no?

 

Si no quieres que aparezcan en todos los tamaños puedes editar directamente las generadas por prestashop. En la carpeta img/p..etc encontraras el id-home.jpg de cada producto

Edited by Enrique Gómez (see edit history)
Link to comment
Share on other sites

Hay un módulo para poner etiquetas a las imagenes

http://addons.prestashop.com/es/aplicaciones-front-office-prestashop-modulos/26[spam-filter]stickers-labels.html

o

http://module-presta.com/stickers-pro.html

 

Si no, podrías cambiar las imágenes y hacerlo tu con algún programa de edición no?

 

Si no quieres que aparezcan en todos los tamaños puedes editar directamente las generadas por prestashop. En la carpeta img/p..etc encontraras el id-home.jpg de cada producto

 

Gracias por la respuesta, logicamente no me voy a gastar ni un duro más en modulos, llevo gastado una pasta y está claro que ya se ha cerrado el grifo, porque es un negocio de terceros esto que no veas.

 

Busco algún módulo GRATUITO tipo Icontools pero que salga en el home en los productos destacados.

 

Saludos

Link to comment
Share on other sites

Si solo quieres poner un icono de gastos de envio gratuitos para todos los productos que tienes en el bloque de productos destacados, si editas el fichero:

/themes/plantilla/modules/homefeatured/homefeatured.tpl
Puedes insertar una imagen para todos los productos de ese bloque, tipo:

<img src="{$img_dir}enviosgratis.jpg" />
y subes la imagen:

enviosgratis.jpg
al directorio:

/themes/plantilla/img/
O simplemente colocar una imagen de fondo para todos los productos de ese bloque, que al final es mas comodo que meter la imagen a piñon.
  • Like 2
Link to comment
Share on other sites

Si solo quieres poner un icono de gastos de envio gratuitos para todos los productos que tienes en el bloque de productos destacados, si editas el fichero:

/themes/plantilla/modules/homefeatured/homefeatured.tpl
Puedes insertar una imagen para todos los productos de ese bloque, tipo:

<img src="{$img_dir}enviosgratis.jpg" />
y subes la imagen:

enviosgratis.jpg
al directorio:

/themes/plantilla/img/
O simplemente colocar una imagen de fondo para todos los productos de ese bloque, que al final es mas comodo que meter la imagen a piñon.

 

 

La verdad Victor, solo busco para algunos productos en concreto de los destacados, para algunos poner una etiqueta de envío gratis y otros por ejemplo en rebajas, solo algunos tendrán envío gratuito, por eso no puedo ponerselo a todos :(

 

Que podría hacer querido Victor?

 

Gracias compañero

Link to comment
Share on other sites

La verdad Victor, solo busco para algunos productos en concreto de los destacados, para algunos poner una etiqueta de envío gratis 

 

Que podría hacer querido Victor?

 

Gracias compañero

Para diferenciar unos productos de otro cuando insertas el texto de gastos de envios gratuitos, podrias hacer de forma poca ortodoxa, algo asi:

 

{if $product.id_product=='X' OR  $product.id_product=='X' OR $product.id_product=='X' ... }

Pin Pan

{/if}
  • Like 1
Link to comment
Share on other sites

 

Para diferenciar unos productos de otro cuando insertas el texto de gastos de envios gratuitos, podrias hacer de forma poca ortodoxa, algo asi:

 

{if $product.id_product=='X' OR  $product.id_product=='X' OR $product.id_product=='X' ... }

Pin Pan

{/if}

 

 

Gracias por todo Victor, no eso no me hace falta la verdad, solo eso de poner una etiqueta a algunos productos de los destacados...

 

Entonces el codigo donde lo introduzco? Y el codigo X que es el ID del producto en sí que quiero poner?

 

Es que hay que explicarmelo casi como a un niño... :(

 

Gracias de nuevo Victor

Link to comment
Share on other sites

Lo mas sencillo es que puedas editar la imagen del producto y añadir un png con el icono que tu quieras.

Puedes plantearte usar el módulo Gratuito que viene de serie watermark.

Hay mejoras gratuitas como este http://www.prestashop.com/forums/topic/260376-resizable-png-watermark-module-prestashop-15/

 

El módulo permite "atacar" un tipo de imagenes, como home_feautred que son las que se ven en la home y a añadirles un png encima

 

 

Lo ideal seria usar css para poner una imagen adicional en background (CSS3) a las imagenes featured (http://www.css3.info/preview/multiple-backgrounds/), pero bueno quizás te sirva lo del watermark.

  • Like 1
Link to comment
Share on other sites

Lo mas sencillo es que puedas editar la imagen del producto y añadir un png con el icono que tu quieras.

Puedes plantearte usar el módulo Gratuito que viene de serie watermark.

Hay mejoras gratuitas como este http://www.prestashop.com/forums/topic/260376-resizable-png-watermark-module-prestashop-15/

 

El módulo permite "atacar" un tipo de imagenes, como home_feautred que son las que se ven en la home y a añadirles un png encima

 

 

Lo ideal seria usar css para poner una imagen adicional en background (CSS3) a las imagenes featured (http://www.css3.info/preview/multiple-backgrounds/), pero bueno quizás te sirva lo del watermark.

 

Gracias Enrique, la verdad es que no tengo ni idea donde poner ese codigo ni de que manera.... los novatos tenemos pocas ventajas en este mundo de la programación... :( lo que dice Victor seguro funciona, pero es que no se como hacerlo exactamente... :(

 

Victor, me puedes guiar un poco de como pudiera hacerlo?

 

Gracias Comunidad de veras a todos

Link to comment
Share on other sites

De que variable depende el envio gratuito, segun el peso o importe?. lo digo para asignar un condicional a ello y que se mostrará solo en esos productos

 

Hola compañero, no depende ni del peso ni del importe, si no que son productos que vienen de fuera de españa, hay un transporte específico para ellos y con gastos 0, es decir, gratuito, por lo que no quiero que sea ni por peso ni por precio... :(

 

Alguna solución por favor?

 

Gracias compañero

 

PD: Por cierto Antonio, preciosa y pedazo web tienes compañero ;)

Edited by Informaticaelec.com (see edit history)
Link to comment
Share on other sites

Puedes agregar o utilizar un estado de producto, el valor reacondicionado si no lo utilizas lo puede traducir por envio gratuito y asignarlo a los productos que tengan esa condicion.

 

estadoprestahop.jpg

 

 

Luego para mostrarlo en el listado de productos o en el modulo productos destacados solo tendrías que poner este condicional

{if $product->condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}
  • Like 1
Link to comment
Share on other sites

 

Puedes agregar o utilizar un estado de producto, el valor reacondicionado si no lo utilizas lo puede traducir por envio gratuito y asignarlo a los productos que tengan esa condicion.

 

estadoprestahop.jpg

 

 

Luego para mostrarlo en el listado de productos o en el modulo productos destacados solo tendrías que poner este condicional

{if $product->condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}

 

Gracias Ventura, la verdad que todo muy bien explicado y te lo agradezco muchísimo, pero... lo siento mucho, pero no se donde ponerlo... :( me podrías decir donde lo podría poner y luego como puedo vincularlo a la imagen en este caso de envío gratuito?

 

Gracias compañero, te lo agradezco y ni te imaginas cuanto... :(

Link to comment
Share on other sites

Si utilizas la plantilla default lo puedes colocar en esta parte en el themes/default/product.list.tpl lo colocas ahi 

 

 

<a class="button lnk_view" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a>
{if $product.condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}
</div>
</li>

Y en el default/modules/homefeatured/homefeatured.tpl lo colocas ahi

<a class="lnk_more" href="{$product.link|escape:'html'}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>
{if $product.condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}

De esta manera te aparecería el texto Envio gratis a los productos que le asignes esa condicion, luego ya mediante css le puedes dar estilos ( color, fuente, tamaño, fondo....)

  • Like 1
Link to comment
Share on other sites

Si utilizas la plantilla default lo puedes colocar en esta parte en el themes/default/product.list.tpl lo colocas ahi 

 

 

<a class="button lnk_view" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a>
{if $product.condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}
</div>
</li>

Y en el default/modules/homefeatured/homefeatured.tpl lo colocas ahi

<a class="lnk_more" href="{$product.link|escape:'html'}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>
{if $product.condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}

De esta manera te aparecería el texto Envio gratis a los productos que le asignes esa condicion, luego ya mediante css le puedes dar estilos ( color, fuente, tamaño, fondo....)

 

Gracias Ventura, vamos a probarlo :)

 

Muchísimas gracias

¿Pero no querías colocarlo solo en el bloque de productos destacados de la pagina principal?

 

Si, quería ponerlo en los productos destacados de inicio, pero si puede ser en los 2 sitios mejor que mejor :P

 

O alomejor me he explicado mal...

Link to comment
Share on other sites

Si utilizas la plantilla default lo puedes colocar en esta parte en el themes/default/product.list.tpl lo colocas ahi 

 

 

<a class="button lnk_view" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{l s='View'}">{l s='View'}</a>
{if $product.condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}
</div>
</li>

Y en el default/modules/homefeatured/homefeatured.tpl lo colocas ahi

<a class="lnk_more" href="{$product.link|escape:'html'}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>
{if $product.condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}

De esta manera te aparecería el texto Envio gratis a los productos que le asignes esa condicion, luego ya mediante css le puedes dar estilos ( color, fuente, tamaño, fondo....)

 

Ya lo he probado compañero... no hay suerte :(

 

No tengo tema por defecto, uso uno personalizado, he echo los cambios en los modulos que me has comentado pero del tema en cuestión, no el de defecto... pero no hay suerte... :(

 

Que puede estár pasando?

 

Gracias compañeros

Link to comment
Share on other sites

Se puede ver tu web ¿?

 

Por supuesto, voy a abrirla un momento, porque la tengo en mantenimiento:

 

http://Mundotronica.es

 

El producto que quiero poner por ejemplo, es el la radio de 2 din, pero como pone nuevo no se como hacerlo, pero en este caso podemos probar con el estuche del cigarro electrónico por ejemplo, a ver si sale en ese que no tiene etiqueta de "nuevo".

 

PD: Al poner la compilación activada sale una letra al lado de la autoradio 2 din que pone " Ver " ... no entiendo porque razón... :(

 

PD2: Aquí te dejo una captura Ventura, para que veas lo que yo tengo como estado de producto:

 

https://www.dropbox.com/s/chw6163ablh3fz3/Captura%20de%20pantalla%202014-03-31%2012.59.01.png

 

Como podría quitar eso compañeros? Es por lo que he puesto de los codigos?

 

Gracias chicos de veras

Edited by Informaticaelec.com (see edit history)
Link to comment
Share on other sites

Por supuesto, voy a abrirla un momento, porque la tengo en mantenimiento:

 

http://Mundotronica.es

 

El producto que quiero poner por ejemplo, es el la radio de 2 din, pero como pone nuevo no se como hacerlo, pero en este caso podemos probar con el estuche del cigarro electrónico por ejemplo, a ver si sale en ese que no tiene etiqueta de "nuevo".

 

PD: Al poner la compilación activada sale una letra al lado de la autoradio 2 din que pone " Ver " ... no entiendo porque razón... :(

 

Como podría quitar eso compañeros? Es por lo que he puesto de los codigos?

 

Gracias chicos de veras

Que te aparezca lo de "Nuevo" da igual, ya que una cosa es que sea nuevo debido a la fecha de publicacion y otra cosa es que su estado sea nuevo, son dos cosas distintas.

 

Como supongo que te lo esta mirando Ventura, quedamos a la espera de lo que te comente, yo estoy en el movil y no puedo acceder a la web.

 

Una cosa, no te recomiendo tener instalado el modulo que te bloquea que puedas pulsar con el boton derecho del raton en tu tienda, es incomodo para los clientes que visiten tu tienda, y eso al final hace que no terminen por comprar. (No es una tonteria)

  • Like 2
Link to comment
Share on other sites

El valor por defecto es nuevo pero puedes cambiarlo

 

Si, eso no es problema, porque con el tiempo se quita lo de nuevo, lo que interesa en este caso es crear un estado nuevo o utilizar alguno de los que hay ya creados, para poder hacer eso... pero no tengo ni idea como hacer eso... :(

 

Ventura, como podría hacerlo?

Gracias compañero de todo corazón

Link to comment
Share on other sites

Que te aparezca lo de "Nuevo" da igual, ya que una cosa es que sea nuevo debido a la fecha de publicacion y otra cosa es que su estado sea nuevo, son dos cosas distintas.

 

Como supongo que te lo esta mirando Ventura, quedamos a la espera de lo que te comente, yo estoy en el movil y no puedo acceder a la web.

 

Una cosa, no te recomiendo tener instalado el modulo que te bloquea que puedas pulsar con el boton derecho del raton en tu tienda, es incomodo para los clientes que visiten tu tienda, y eso al final hace que no terminen por comprar. (No es una tonteria)

 

Gracias por la recomendación Victor, lo que pasa que hay mucho copión compañero y me duele el pedazo de trabajo que nos estamos pegando para que luego llegue el listo de turno y nos copie todo, aunque no sea posible intentar parar a ningun copión, al menos lo hacemos de tal manera para que no nos copien tan facilmente todo...

 

Gracias por el consejo Victor

Link to comment
Share on other sites

Si, no te preocupes, haz lo que te puse al principio asociale el estado reacondiconado sí no lo utilizas para nada, se pueden agregar más estados pero igual no hace falta complicarlo más

 

"reacondicionado" significa "renovado" compañero?

 

Lo pongo en el codigo que me has facilitado como "renovated" ?

 

Gracias por todo Ventura

Edited by Informaticaelec.com (see edit history)
Link to comment
Share on other sites

Lo pongo en el codigo que me has facilitado como "renovated" ?

 

Gracias por todo Ventura

No, no tienes que cambiarlo en el tpl, es una array de valores fijos, lo de la condicion.

 

Gracias por la recomendación Victor, lo que pasa que hay mucho copión compañero y me duele el pedazo de trabajo que nos estamos pegando para que luego llegue el listo de turno y nos copie todo, aunque no sea posible intentar parar a ningun copión, al menos lo hacemos de tal manera para que no nos copien tan facilmente todo...

 

Gracias por el consejo Victor

Quien quiera, copiar una web de ese estilo, la puede copiar facil y sencillamente, por eso te lo comente. xD

  • Like 1
Link to comment
Share on other sites

No, no tienes que cambiarlo en el tpl, es una array de valores fijos, lo de la condicion.

 

 

Quien quiera, copiar una web de ese estilo, la puede copiar facil y sencillamente, por eso te lo comente. xD

 

Gracias por todo Victor, si tu lo dices, así será y lo que yo piense no tiene importancia, porque yo no soy el que sabe, si no lo eres tu Maestro.

 

Entonces no me queda claro compañero, lo dejo entonces en "refurbished" ???? Y donde tendría que cambiar lo otro? Es que no entiendo nada... :(

Link to comment
Share on other sites

Entonces no me queda claro compañero, lo dejo entonces en "refurbished" ???? Y donde tendría que cambiar lo otro? Es que no entiendo nada... :(

Hola

 

 

{if  $product.condition=='new'}  .....  {/if} {* Esto quiere decir si el producto esta en el estado nuevo *}

{if  $product.condition=='usado'} .....  {/if}  {* Esto quiere decir si el producto esta en el estado usado *}

{if  $product.condition=='refurbished'}  ....  {/if}  {* Esto quiere decir si el producto esta renovado *}
Link to comment
Share on other sites

Lo que te aparece de "Ver" es por que has copiado el texto de ejemplo completo que te puse para ubicarte un poco y que pertenece a la plantilla default, lo que tienes que colocar es esto 

{if $product.condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}

Que es lo que ha puesto Victor (Nadie)

 

 

Venga que ya casi está

Link to comment
Share on other sites

Lo que te aparece de "Ver" es por que has copiado el texto de ejemplo completo que te puse para ubicarte un poco y que pertenece a la plantilla default, lo que tienes que colocar es esto 

{if $product.condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}

Que es lo que ha puesto Victor (Nadie)

 

 

Venga que ya casi está

 

Claro, yo solo lo comente a modo de prueba, para ver si le estaba imprimiendo algo u no, porque al parecer el comentaba que anteriormente no se le estaba imprimiendo nada o eso creo, vamos ahora no puedo ver la web, asi que solo comento a ciegas xD

Link to comment
Share on other sites

De todos modos, si pegas el codigo entero de tu homefeatured.tpl en el foro,  el usuario ventura podra ver como estas dejando el codigo y asi dejarlo clavado, siempre es bueno cuanto mas info tener mejor. xD

Link to comment
Share on other sites

Lo que te aparece de "Ver" es por que has copiado el texto de ejemplo completo que te puse para ubicarte un poco y que pertenece a la plantilla default, lo que tienes que colocar es esto 

{if $product.condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}

Que es lo que ha puesto Victor (Nadie)

 

 

Venga que ya casi está

 

Muchas gracias Ventura y Victor por seguir aquí conmigo, y gracias Ventura por animarme a que queda poco... a ver si es verdad joe...

 

Te pego el codigo como lo tengo. como dice Victor es mas facil ;)

{** 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*'>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 [email protected] 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 <[email protected]>*  @copyright  2007-2012 PrestaShop SA*  @version  Release: $Revision: 6594 $*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)*  International Registered Trademark & Property of PrestaShop SA*}<!-- MODULE Home Featured Products --><div id="featured-products_block_center" class="block products_block clearfix">	<p class="title_block">{l s='Featured products' mod='homefeatured'}</p>	{if isset($products) AND $products}		<div class="block_content">			{assign var='liHeight' value=250}			{assign var='nbItemsPerLine' value=4}			{assign var='nbLi' value=$products|@count}			{math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}			{math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight}			<ul>			{foreach from=$products item=product name=homeFeaturedProducts}				<li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1} {/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}">					<a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='Nuevo' mod='homefeatured'}</span>{/if}</a>					<h5><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h5>					<!--<div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:65:'...'}</a></div>-->					<div class="prod_info">						<!--<a class="lnk_more" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>-->						{if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}<div style="height:21px;"></div>{/if}												{if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE}							{if ($product.quantity > 0 OR $product.allow_oosp)}							<a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a>							{else}							<span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span>							{/if}						{else}							<div style="height:23px;"></div>						{/if}					</div>				</li>			{/foreach}			</ul>		</div>	{else}		<p>{l s='No featured products' mod='homefeatured'}</p>	{/if}<a class="lnk_more" href="{$product.link|escape:'html'}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a></div><!-- /MODULE Home Featured Products -->
{if $product.condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}

Gracias a todos

Link to comment
Share on other sites

Ponlo asi

{** 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*'>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 [email protected] 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 <[email protected]>* @copyright 2007-2012 PrestaShop SA* @version Release: $Revision: 6594 $* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*}<!-- MODULE Home Featured Products --><div id="featured-products_block_center" class="block products_block clearfix">    <p class="title_block">{l s='Featured products' mod='homefeatured'}</p>    {if isset($products) AND $products}        <div class="block_content">            {assign var='liHeight' value=250}            {assign var='nbItemsPerLine' value=4}            {assign var='nbLi' value=$products|@count}            {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}            {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight}            <ul>            {foreach from=$products item=product name=homeFeaturedProducts}                <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1} {/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}">                    <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='Nuevo' mod='homefeatured'}</span>{/if}</a>                    <h5><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h5>                    <!--<div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:65:'...'}</a></div>-->                    <div class="prod_info">                        <!--<a class="lnk_more" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>-->                        {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}<div style="height:21px;"></div>{/if}                                                {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE}                            {if ($product.quantity > 0 OR $product.allow_oosp)}                            <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a>                            {else}                            <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span>                            {/if}                        {else}                            <div style="height:23px;"></div>                        {/if}                    </div>                </li>            {/foreach}            </ul>        </div>    {else}        <p>{l s='No featured products' mod='homefeatured'}</p>    {/if}<a class="lnk_more" href="{$product.link|escape:'html'}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>{if $product.condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}</div><!-- /MODULE Home Featured Products -->
Edited by ventura (see edit history)
Link to comment
Share on other sites

 

Ponlo asi

{** 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*'>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 [email protected] 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 <[email protected]>* @copyright 2007-2012 PrestaShop SA* @version Release: $Revision: 6594 $* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*}<!-- MODULE Home Featured Products --><div id="featured-products_block_center" class="block products_block clearfix">    <p class="title_block">{l s='Featured products' mod='homefeatured'}</p>    {if isset($products) AND $products}        <div class="block_content">            {assign var='liHeight' value=250}            {assign var='nbItemsPerLine' value=4}            {assign var='nbLi' value=$products|@count}            {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}            {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight}            <ul>            {foreach from=$products item=product name=homeFeaturedProducts}                <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1} {/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}">                    <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='Nuevo' mod='homefeatured'}</span>{/if}</a>                    <h5><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h5>                    <!--<div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:65:'...'}</a></div>-->                    <div class="prod_info">                        <!--<a class="lnk_more" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>-->                        {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}<div style="height:21px;"></div>{/if}                                                {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE}                            {if ($product.quantity > 0 OR $product.allow_oosp)}                            <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a>                            {else}                            <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span>                            {/if}                        {else}                            <div style="height:23px;"></div>                        {/if}                    </div>                </li>            {/foreach}            </ul>        </div>    {else}        <p>{l s='No featured products' mod='homefeatured'}</p>    {/if}<a class="lnk_more" href="{$product.link|escape:'html'}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>{if $product.condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}</div><!-- /MODULE Home Featured Products -->

 

Yo estoy viendo el codigo fuera del:

</li>{/foreach}	

¿No deberia estar dentro?

Link to comment
Share on other sites

Perdona, lo puse mal dentro dentro

Así?

{** 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*'>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 [email protected] 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 <[email protected]>* @copyright 2007-2012 PrestaShop SA* @version Release: $Revision: 6594 $* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*}<!-- MODULE Home Featured Products --><div id="featured-products_block_center" class="block products_block clearfix">    <p class="title_block">{l s='Featured products' mod='homefeatured'}</p>    {if isset($products) AND $products}        <div class="block_content">            {assign var='liHeight' value=250}            {assign var='nbItemsPerLine' value=4}            {assign var='nbLi' value=$products|@count}            {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}            {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight}            <ul>            {foreach from=$products item=product name=homeFeaturedProducts}                <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1} {/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}">                    <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='Nuevo' mod='homefeatured'}</span>{/if}</a>                    <h5><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h5>                    <!--<div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:65:'...'}</a></div>-->                    <div class="prod_info">                        <!--<a class="lnk_more" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>-->                        {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}<div style="height:21px;"></div>{/if}                                                {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE}                            {if ($product.quantity > 0 OR $product.allow_oosp)}                            <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a>                            {else}                            <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span>                            {/if}                        {else}                            <div style="height:23px;"></div>                        {/if}                    </div>                </li>            {/foreach} {if $product.condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}           </ul>        </div>    {else}        <p>{l s='No featured products' mod='homefeatured'}</p>    {/if}<a class="lnk_more" href="{$product.link|escape:'html'}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a></div><!-- /MODULE Home Featured Products -->
Link to comment
Share on other sites

Esto:

 

{if $product.condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis' mod='homefeatured'}</span>{/if}
 

Ponlo por ejemplo debajo de:

 

<!--<a class="lnk_more" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>-->   

o debajo de:

 

  <div class="prod_info">

Link to comment
Share on other sites

 

Así?

{** 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*'>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 [email protected] 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 <[email protected]>* @copyright 2007-2012 PrestaShop SA* @version Release: $Revision: 6594 $* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*}<!-- MODULE Home Featured Products --><div id="featured-products_block_center" class="block products_block clearfix">    <p class="title_block">{l s='Featured products' mod='homefeatured'}</p>    {if isset($products) AND $products}        <div class="block_content">            {assign var='liHeight' value=250}            {assign var='nbItemsPerLine' value=4}            {assign var='nbLi' value=$products|@count}            {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}            {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight}            <ul>            {foreach from=$products item=product name=homeFeaturedProducts}                <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1} {/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}">                    <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='Nuevo' mod='homefeatured'}</span>{/if}</a>                    <h5><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h5>                    <!--<div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:65:'...'}</a></div>-->                    <div class="prod_info">                        <!--<a class="lnk_more" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>-->                        {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}<div style="height:21px;"></div>{/if}                                                {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE}                            {if ($product.quantity > 0 OR $product.allow_oosp)}                            <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a>                            {else}                            <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span>                            {/if}                        {else}                            <div style="height:23px;"></div>                        {/if}                    </div>                </li>            {/foreach} {if $product.condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}           </ul>        </div>    {else}        <p>{l s='No featured products' mod='homefeatured'}</p>    {/if}<a class="lnk_more" href="{$product.link|escape:'html'}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a></div><!-- /MODULE Home Featured Products -->

Asi

{** 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*'>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 [email protected] 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 <[email protected]>* @copyright 2007-2012 PrestaShop SA* @version Release: $Revision: 6594 $* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*}<!-- MODULE Home Featured Products --><div id="featured-products_block_center" class="block products_block clearfix"> <p class="title_block">{l s='Featured products' mod='homefeatured'}</p> {if isset($products) AND $products} <div class="block_content"> {assign var='liHeight' value=250} {assign var='nbItemsPerLine' value=4} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight} <ul> {foreach from=$products item=product name=homeFeaturedProducts} <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1} {/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}"> <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='Nuevo' mod='homefeatured'}</span>{/if}</a> <h5><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h5> <!--<div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:65:'...'}</a></div>--> <div class="prod_info"> <!--<a class="lnk_more" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>--> {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}<div style="height:21px;"></div>{/if} {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a> {else} <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span> {/if} {else} <div style="height:23px;"></div> {/if} </div> {if $product.condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}</li> {/foreach}  </ul> </div> {else} <p>{l s='No featured products' mod='homefeatured'}</p> {/if}<a class="lnk_more" href="{$product.link|escape:'html'}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a></div><!-- /MODULE Home Featured Products -->
Link to comment
Share on other sites

 

Asi

{** 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*'>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 [email protected] 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 <[email protected]>* @copyright 2007-2012 PrestaShop SA* @version Release: $Revision: 6594 $* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*}<!-- MODULE Home Featured Products --><div id="featured-products_block_center" class="block products_block clearfix"> <p class="title_block">{l s='Featured products' mod='homefeatured'}</p> {if isset($products) AND $products} <div class="block_content"> {assign var='liHeight' value=250} {assign var='nbItemsPerLine' value=4} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight} <ul> {foreach from=$products item=product name=homeFeaturedProducts} <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1} {/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}"> <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='Nuevo' mod='homefeatured'}</span>{/if}</a> <h5><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h5> <!--<div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:65:'...'}</a></div>--> <div class="prod_info"> <!--<a class="lnk_more" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>--> {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}<div style="height:21px;"></div>{/if} {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a> {else} <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span> {/if} {else} <div style="height:23px;"></div> {/if} </div> {if $product.condition == 'refurbished'}<span class="envio-gratis">{l s='Envio gratis'}</span>{/if}</li> {/foreach}  </ul> </div> {else} <p>{l s='No featured products' mod='homefeatured'}</p> {/if}<a class="lnk_more" href="{$product.link|escape:'html'}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a></div><!-- /MODULE Home Featured Products -->

 

Genial Ventura, muchísimas muchísimas gracias, ahora si, ahora queda lo otro que es más dificil, ahora para asociar la imagen al estado? Porque lo que necesitaba era la tipica tira roja que pusiera envio gratuito o el icono que tengo de " Nuevo "pero igual para el envío gratuito.

 

Victor, es que el creador del tema que tengo... es un poco chapuzas... y los codigos los pone todo en una linea... y no se como separarlo para poder verlo mejor hijo...

 

De todo corazón gracias Ventura y Victor

Edited by Informaticaelec.com (see edit history)
Link to comment
Share on other sites

No te compliques con lo de la imagen, con css puedes decorar como quieras ese texto, ponerle fondo, color , tamaño. Solo tienes que ir al archivo themes/tu-tema/css/global.css y añadir la clase que has colocado

 

 

.envio-gratuito { color: white; background: red }

Link to comment
Share on other sites

Pues si lo que quieres es una tira como la de nuevo pegada en la imagen xD, mejor lo hubieras puesto debajo de:

 

{if isset($product.new) && $product.new == 1}<span class="new">{l s='Nuevo' mod='homefeatured'}</span>{/if}
Esto:

 

{if $product.condition == 'refurbished'}<span class="envio_gratis">{l s='Envio gratis' mod='homefeatured'}</span>{/if}
Y luego añadir en el css, algo asi:

 

 

#featured-products_block_center .product_image span.envio_gratis { 

display: block;
position: absolute;
top: 15px;
right: 37px;
padding: 1px 4px;
width: 79px;
font-size: 10px;
color: #fff;
text-align: center;
text-transform: uppercase;
-moz-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-o-transform: rotate(45deg);
-ms-transform: rotate(45deg);
background-color: #990000;
transform: rotate(45deg);
}


ya ajustas tus los valores xD

PD: Se me colo una llave de mas en el css, he actualizado mi mensaje xD

Link to comment
Share on other sites

Pues si lo que quieres es una tira como la de nuevo pegada en la imagen xD, mejor lo hubieras puesto debajo de:

 

{if isset($product.new) && $product.new == 1}<span class="new">{l s='Nuevo' mod='homefeatured'}</span>{/if}
Esto:

 

{if $product.condition == 'refurbished'}<span class="envio_gratis">{l s='Envio gratis' mod='homefeatured'}</span>{/if}
Y luego añadir en el css, algo asi:

 

 

#featured-products_block_center .product_image span.envio_gratis { 

display: block;
position: absolute;
top: 15px;
right: 37px;
padding: 1px 4px;
width: 79px;
font-size: 10px;
color: #fff;
text-align: center;
text-transform: uppercase;
-moz-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-o-transform: rotate(45deg);
-ms-transform: rotate(45deg);
background-color: #990000;
transform: rotate(45deg);
}


ya ajustas tus los valores xD

PD: Se me colo una llave de mas en el css, he actualizado mi mensaje xD

 

 

Hola chicos, ya estoy de vuelta, he puesto eso en el CSS Victor y he modificado el HomeFeatured dejandolo así, dime por favor si lo he puesto mal ;)

{** 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*'>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 [email protected] 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 <[email protected]>* @copyright 2007-2012 PrestaShop SA* @version Release: $Revision: 6594 $* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*}<!-- MODULE Home Featured Products --><div id="featured-products_block_center" class="block products_block clearfix"> <p class="title_block">{l s='Featured products' mod='homefeatured'}</p> {if isset($products) AND $products} <div class="block_content"> {assign var='liHeight' value=250} {assign var='nbItemsPerLine' value=4} {assign var='nbLi' value=$products|@count} {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines} {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight} <ul> {foreach from=$products item=product name=homeFeaturedProducts} <li class="ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1} {/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}"> <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='Nuevo' mod='homefeatured'}</span>{/if}</a> {if $product.condition == 'refurbished'}<span class="envio_gratis">{l s='Envio gratis' mod='homefeatured'}</span>{/if}<h5><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h5> <!--<div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:65:'...'}</a></div>--> <div class="prod_info"> <!--<a class="lnk_more" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a>--> {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}<div style="height:21px;"></div>{/if} {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a> {else} <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span> {/if} {else} <div style="height:23px;"></div> {/if} </div></li> {/foreach}  </ul> </div> {else} <p>{l s='No featured products' mod='homefeatured'}</p> {/if}<a class="lnk_more" href="{$product.link|escape:'html'}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a></div><!-- /MODULE Home Featured Products -->

Gracias enormes a los 2 de veras a ver si esta tarde ya se puede poner la imagen al producto y ya me quedo algo mas tranquilo... :(

 

PD: No me pone imagen.... :( :( :(

Edited by Informaticaelec.com (see edit history)
Link to comment
Share on other sites

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