Teddy's Dad Posted June 13, 2012 Share Posted June 13, 2012 Hello all I am setting up a PS 1.4.8.2 site based on a custom theme. I have configured and enabled Color picker in the backend but it doesn't show in the front end. I believe I have set it up correctly (compared it to the test PS site downloaded from PS website). Is this because of the custom theme? How can I hook this into the product page on FE? I have gone through the modules list, but it is not there. Can anyone help? I look forwrad to your ideas? Regards Nima Link to comment Share on other sites More sharing options...
shacker Posted June 13, 2012 Share Posted June 13, 2012 hi. If you put the default theme, the color picker is in the front end? Link to comment Share on other sites More sharing options...
Teddy's Dad Posted June 13, 2012 Author Share Posted June 13, 2012 Hi Shacker Thank you for the reply. I don't know. The thought of doing this occured to me, but I though I might break it. If I knew what Color Picker was it would help. I know it is not a module, so I take it, it is hard coded in the core. Am I right? Can it be disabled or removed (and subsequently enabled or added)? Can you tell me where to look for it? If it helps I can change to default template and test. Please let me know. Regards Nima Link to comment Share on other sites More sharing options...
Bill Dalton Posted June 13, 2012 Share Posted June 13, 2012 You are right, Color Picker is not a module. Not all products need it, so you need to enable it for each new product you add. You may also need to create an attribute to add your colors. The default install of Prestashop has the color picker enabled. You mention a new theme, are the default products still showing or have they been removed? Link to comment Share on other sites More sharing options...
Teddy's Dad Posted June 13, 2012 Author Share Posted June 13, 2012 Hello Bill Thank you for the reply. The new theme does not have any of the default products. I have also set all the right settings for the product in the BO and enabled it there. This has to have been removed or disabled from the code, which is why I am trying to see where in the core code it might be. Regards Nima Link to comment Share on other sites More sharing options...
Bill Dalton Posted June 13, 2012 Share Posted June 13, 2012 (edited) First place to check is in your theme Product.tpl Look for, something like, around line 170. <!-- colors --> <div id="color_picker"> <p>{l s='Pick a color:' js=1}</p> <div class="clearblock"></div> <ul id="color_to_pick_list"> {foreach from=$colors key='id_attribute' item='color'} <li><a id="color_{$id_attribute|intval}" class="color_pick" style="background: {$color.value};" onclick="updateColorSelect({$id_attribute|intval});$('#wrapResetImages').show('slow');" title="{$color.name}">{if file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')}<img src="{$img_col_dir}{$id_attribute}.jpg" alt="{$color.name}" width="20" height="20" />{/if}</a></li> Edited June 13, 2012 by Bill Dalton (see edit history) Link to comment Share on other sites More sharing options...
Bill Dalton Posted June 13, 2012 Share Posted June 13, 2012 Check your themes globle.css for /* color picker */ The CSS and TPL control if it is displayed properly. Link to comment Share on other sites More sharing options...
Bill Dalton Posted June 13, 2012 Share Posted June 13, 2012 In prestashop > controllers > ProductController.php Look for /* Color management */ around line 277. Link to comment Share on other sites More sharing options...
Dh42 Posted June 13, 2012 Share Posted June 13, 2012 More than likely the theme designer took it out. Do you have a link to your site? Link to comment Share on other sites More sharing options...
shacker Posted June 15, 2012 Share Posted June 15, 2012 yes, its more easy. and if in default prestashop theme works, maybe your theme dont have the code of the color picker Link to comment Share on other sites More sharing options...
qand Posted August 22, 2012 Share Posted August 22, 2012 i want to set color picker along with size picker, is that possible, becuase i have got two attributes color and size. i want to show both of them. Link to comment Share on other sites More sharing options...
benjamin utterback Posted August 22, 2012 Share Posted August 22, 2012 Hello qand, Welcome to the PresatShop Forums! As stickees has mentioned you can set unlimited attributes. Check out this video for a tutorials on how to use the combinations generator. http://screencast.com/t/IuUsVxXrD I hope this helps! Thank you for choosing PrestaShop! Regards, Benjamin Link to comment Share on other sites More sharing options...
Recommended Posts