Rudolfo78 Posted May 4, 2014 Share Posted May 4, 2014 (edited) Hi, as you can see after upgrading to PS 1.6 my product overview doesn't show color samples atribute correctly. There are just empty boxes, that represent color, but color samples are missing. Any ideas or similar issue? Thanks, for any advices. www.maclife.sk Edited May 5, 2014 by Rudolfo78 (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted May 4, 2014 Share Posted May 4, 2014 Rudolfo, Can you give us a link to your site, so we can see what happens ourselves? Link to comment Share on other sites More sharing options...
Rudolfo78 Posted May 4, 2014 Author Share Posted May 4, 2014 (edited) Yes I forgot, you can take a look: http://www.maclife.sk http://maclife.sk/iphone-55s/26-ultratenky-priesvitny-obal-na-iphone-55s-clear.html Edited May 4, 2014 by Rudolfo78 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 4, 2014 Share Posted May 4, 2014 catalog > product attributes > color check if you've got colors defined: click on color (any you want) and verify if there is: it looks like not. Link to comment Share on other sites More sharing options...
Rudolfo78 Posted May 5, 2014 Author Share Posted May 5, 2014 (edited) I checked it, and everything looks OK: Edited May 5, 2014 by Rudolfo78 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 5, 2014 Share Posted May 5, 2014 can you also check product.tpl file, you've got there code like: <ul id="color_to_pick_list" class="clearfix"> {assign var="default_colorpicker" value=""} {foreach from=$group.attributes key=id_attribute item=group_attribute} <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}" style="background: {$colors.$id_attribute.value|escape:'html':'UTF-8'};" title="{$colors.$id_attribute.name|escape:'html':'UTF-8'}"> {if file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')} <img src="{$img_col_dir}{$id_attribute|intval}.jpg" alt="{$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> ? Link to comment Share on other sites More sharing options...
Rudolfo78 Posted May 5, 2014 Author Share Posted May 5, 2014 (edited) Exactly same code in my product.tpl file: <ul id="color_to_pick_list" class="clearfix"> {assign var="default_colorpicker" value=""} {foreach from=$group.attributes key=id_attribute item=group_attribute} <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}" style="background: {$colors.$id_attribute.value|escape:'html':'UTF-8'};" title="{$colors.$id_attribute.name|escape:'html':'UTF-8'}"> {if file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')} <img src="{$img_col_dir}{$id_attribute|intval}.jpg" alt="{$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> Edited May 5, 2014 by Rudolfo78 (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted May 5, 2014 Share Posted May 5, 2014 If you make a NEW product, with some colour combinations, do you see correct colours in front office? Link to comment Share on other sites More sharing options...
Rudolfo78 Posted May 5, 2014 Author Share Posted May 5, 2014 No, I don't see any Link to comment Share on other sites More sharing options...
Magdalena_Nowak Posted May 6, 2014 Share Posted May 6, 2014 Hello, I have maybe a bit different problem but the last picture of Rudolfo78 doesn´t show the product price. And that´s my problem. I´ve set the price and I see it in the all products overview but not when I click at the product :/ Could you help me with this please? Link to comment Share on other sites More sharing options...
vekia Posted May 6, 2014 Share Posted May 6, 2014 so maybe you use some overrides of prestashop core? are you able to verify it? it's worth to check this Link to comment Share on other sites More sharing options...
Magdalena_Nowak Posted May 6, 2014 Share Posted May 6, 2014 mmmhh, it works when i switch to the standard theme. I will investigate. Thanks! Link to comment Share on other sites More sharing options...
Rudolfo78 Posted May 6, 2014 Author Share Posted May 6, 2014 @vekia: did you answer to Magdalena_Nowak or me? Link to comment Share on other sites More sharing options...
vekia Posted May 6, 2014 Share Posted May 6, 2014 @vekia: did you answer to Magdalena_Nowak or me? to you sorry, i should quote your post, then both you and Magdalena will not be confused Link to comment Share on other sites More sharing options...
Rudolfo78 Posted May 6, 2014 Author Share Posted May 6, 2014 Please explain, what do you mean by "overrides of prestashop core"? I didn't change anything except for some design of default theme in previous version (1.5), but color samples and everything else worked correctly there... :/ Link to comment Share on other sites More sharing options...
vekia Posted May 6, 2014 Share Posted May 6, 2014 Overriding PrestaShop's classes and controllersOverriding is a way to "override" class files and controller files. PrestaShop's ingenious class auto-loading function makes the "switch" to other files fairly simple. Thanks to PrestaShop's fully object-oriented code, you can rely on object inheritance to modify and add new behaviors, using the properties and methods of the various existing classes. Classes and controllers are usually built following a certain norm. Here is the Product class and controller: /classes/Product.phpThis class would be called ProductCore. /controllers/front/ProductController.phpThis controller would be called ProductControllerCore. You will need to create a PHP file and place it either of the override folders, depending on whether this file is part of a module, or distributed as-is. Indeed, since PrestaShop 1.5, there are two locations where you can place your overriding files: either at the root of the PrestaShop install, or within a module. Overriding a classIn order to override the Product class, your file needs to be called Product.php and must feature a Product class that then extends ProductCore class. The file can be placed in either of these locations: /override/classes/Product.php /modules/my_module/override/classes/Product.php Overriding a controllerIn order to override the ProductController class, your file needs to be called ProductController.php and must feature a ProductController class that then extends ProductControllerCore class. The file can be placed in either of these locations: /override/controllers/front/ProductController.php /modules/my_module/override/controllers/front/ProductController.php Link to comment Share on other sites More sharing options...
Rudolfo78 Posted May 7, 2014 Author Share Posted May 7, 2014 I didn't change any of these files for sure... Link to comment Share on other sites More sharing options...
PascalVG Posted May 9, 2014 Share Posted May 9, 2014 Rudolfo, Just to see if the conversion is the problem: Can you try to make a new Attribute: Color_new and save. select the Color_new attribute in the attribute list and add a few new attribute values: new_grey, new_blue, etc. then add a new product and use these attributes to make some new combinations. If you then select this product, do the colours show? pascal Link to comment Share on other sites More sharing options...
Rudolfo78 Posted May 11, 2014 Author Share Posted May 11, 2014 This solved my problem. I had to add new atribute and I added new values then. A bit work to change every product now, but I am glad that this attribute works at last. Thanks a lot for helping me! Link to comment Share on other sites More sharing options...
andrea22k Posted May 20, 2014 Share Posted May 20, 2014 (edited) For everyone who got the same problem I found a really fast solution. In my case my attribute Color has id_attribute_group 3. In my database, in the table ps_attribute_group, for some reason after the upgrade to 1.6.0.6 version of prestashop I had this line. (look at the attached image) Basically, is_color_group should be set to 1. You can do it manually in the database or, I think, you can edit your attribute in backoffice and set again: attribute type: color or texture. Hope this can help someone! Edited May 20, 2014 by andrea22k (see edit history) 4 Link to comment Share on other sites More sharing options...
Grindelf Posted September 9, 2014 Share Posted September 9, 2014 Saved my day andrea22k Solved my problem 1 Link to comment Share on other sites More sharing options...
Recommended Posts