Jump to content

unexplainable behavior of color picker on product list


Recommended Posts

I can't figure out how the order of the little color picker boxes on the product list is determined.  The colors are displayed in one order on the product list and a different order on the product page.  Here's a link to the product list:


 


http://discountwallc.../1880-geometric


 


The order on the product page is the order of the colors in the list of values in the BO but the order on the product list makes no sense.  I am using 1.6.0.8 but have updated product-list-colors.tpl with the latest forge update.  I just cannot figure this out.  Any help would be greatly appreciated.  Thank you.


 

Link to comment
Share on other sites

Hello

It would be so much better for you if you post your topic in just one forum.

 

Posting a topic in more than one forum might be great for you but it makes it harder for other members to find a solution to the same/similar problem.

 

Hope you do not mind me mentioning this.

 

Paul

Link to comment
Share on other sites

I think the problem is in the 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};">
				{if file_exists($col_img_dir|cat:$color.id_attribute|cat:'.jpg')}
					<img src="{$img_col_dir}{$color.id_attribute|intval}.jpg" alt="{$color.name|escape:'html':'UTF-8'}" title="{$color.name|escape:'html':'UTF-8'}" width="36" height="36" />
				{/if}
			</a>
		</li>
	{/foreach}
</ul>

I can't find where the $colors_list  array is set, not that I would know what to do if I did find it.  Can anyone help?  I need to get this figured out.  Thank you.

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...