Avisos
Vaciar todo
Diseño y Desarrollo web en Prestashop
2
Respuestas
2
Usuarios
0
Reactions
3,748
Visitas
Topic starter
Se puede mostrar el nombre del color, debajo de los atributos de los colores generados por las combinaciones en la ficha del producto en Prestashop 1.6
Respondido : 14/11/2014 10:40 pm
Puedes usar la variable:
{$colors.$id_attribute.name}
Ejemplo:
Intenta editar el fichero:
/themes/default-bootstrap/product.tpl
Y añade debajo de código:
<a href="{$link->getProductLink($product)|escape:'html':'UTF-8'}" id="color_{$id_attribute|intval}" name="{$colors.$id_attribute.name|escape:'html':'UTF-8'}" class="color_pick{if ($group.default == $id_attribute)} selected{/if}"{if !$img_color_exists && isset($colors.$id_attribute.value) && $colors.$id_attribute.value} style="background:{$colors.$id_attribute.value|escape:'html':'UTF-8'};"{/if} title="{$colors.$id_attribute.name|escape:'html':'UTF-8'}">
{if $img_color_exists}
<img src="{$img_col_dir}{$id_attribute|intval}.jpg" alt="{$colors.$id_attribute.name|escape:'html':'UTF-8'}" title="{$colors.$id_attribute.name|escape:'html':'UTF-8'}" width="20" height="20" />
{/if}
</a>
Este código:
{$colors.$id_attribute.name}
FactoriaDigital - Expertos en Magento
Prueba 1 mes gratis nuestro Hosting Magento
Respondido : 15/11/2014 10:23 pm