Jump to content

Blank squares instead of colors on product page


Recommended Posts

Hi everyone,

I am almost done with upgrading my Prestashop from 1.5 to 1.6.1, everything was ok, I have just one frustrated problem:

On product page there are just blank squares instead of colors (product colors variations).

Check e.g. this product page: http://goo.gl/fy70pc

 

See attached files, there are all screens from product and back office.

 

I have tried everything, read the forum and similar topics, but nothing helped. Please, advise.

 

Thanks a lot!

post-205592-0-37154900-1438631749_thumb.png

post-205592-0-65053500-1438631762_thumb.png

post-205592-0-95185600-1438631767_thumb.png

post-205592-0-06457700-1438631786_thumb.png

Link to comment
Share on other sites

Ok, then could you post code from product.tpl, part from

{elseif ($group.group_type == 'color')}

to

{elseif ($group.group_type == 'radio')}

as you can see that inline style where background is set is missing and you do not use texture.

Link to comment
Share on other sites

thank you, here is the code from themes/mytheme/product.tpl:

{elseif ($group.group_type == 'color')}
													<ul id="color_to_pick_list" class="clearfix">
														{assign var="default_colorpicker" value=""}
														{foreach from=$group.attributes key=id_attribute item=group_attribute}
															{assign var='img_color_exists' value=file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')}
															<li{if $group.default == $id_attribute} class="selected"{/if}>
																<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>
															</li>
															{if ($group.default == $id_attribute)}
																{$default_colorpicker = $id_attribute}
															{/if}
														{/foreach}
													</ul>
													<input type="hidden" class="color_pick_hidden" name="{$groupName|escape:'html':'UTF-8'}" value="{$default_colorpicker|intval}" />
Link to comment
Share on other sites

No other ideas, just try to print these values to see why inline style code with color  is not showing

{assign var='img_color_exists' value=file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')}
															<li{if $group.default == $id_attribute} class="selected"{/if}>
				{$img_color_exists|var_dump} ---- {$colors.$id_attribute.value|var_dump}												<a href="...... 
Link to comment
Share on other sites

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...