Jump to content

Color picker does not show on custom themed frontend V1.4.8


Recommended Posts

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

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

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

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

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 by Bill Dalton (see edit history)
Link to comment
Share on other sites

  • 2 months later...
×
×
  • Create New...