Jump to content

color picker in product list pestashop 1.6


Recommended Posts

Hello prestashopers

 

I need your help again...

 

I have the colour picker in the product lists but when I select a color it enters to the product page (with the correct color seleted) but it is not what I want.

 

I want to select the color in the product list and add it to the cart directly form the product list page whitout need to enter the product page.

 

There is a file (product-list-colors.tpl) which I know is the one to be fixed but I can´t figure out how. I tried to copy the product.tpl code but never worked...

 

Hope someone can help!

 

http://www.sienra.com.uy/tienda/index.php?id_category=47&controller=category&id_lang=3

 

Product-list-colors.tpl

<ul class="color_to_pick_list clearfix">
	{foreach from=$colors_list item='color'}
		<li>
			<a
			href="{$link->getProductLink($color.id_product, null, null, null, null, null,                        $color.id_product_attribute)|escape:'html':'UTF-8'}"
			id="color_{$color.id_product_attribute|intval}"
			class="color_pick"
			style="background: {$color.color};">
			</a>
		</li>
	{/foreach}
</ul>
Link to comment
Share on other sites

×
×
  • Create New...