Jump to content

Attribute Image Size HELP!


Recommended Posts

Hi all,


Sorry if this has been solved somewhere before, but I can find it :unsure:


Please can someone tell me how I can change the attribute image size or even allow a pop up to show an enlarged image?


I am a complete beginner trying to set up a online wig shop and need to show various hair colour options and at the moment the attribute size is too small to see the true colour.


Any help will be much appreciated and I thank you in advance.


(P.S. I am confident to change data within files as long as Im clearly signposted where to go LOL)


Many Thanks :D

Link to comment
Share on other sites



try to edit your product.css:


.attribute_list #color_to_pick_list a.color_pick {
display: block;
height: 15px; //this
width: 15px; //and this



And on top of the block size in CSS the img width and height need to be changed as well.

Locate the product.tpl file in your theme folder, find the line with

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

around line number 253 and the line

<img src="{$img_col_dir}{$id_attribute}.jpg" alt="{$colors.$id_attribute.name}" width="20" height="20" />

around line number 295 and change the width and height attributes

width="20" height="20"

to your needs.

Link to comment
Share on other sites

  • 4 weeks later...

Ja, maar dat is voor mijn programmeringskennis veel te ingewikkeld helaas...

Een andere manier is er helaas niet. Prestashop voorziet (op dit moment nog) niet in het vrij definiëren van attribuut types. Het is dat ik al volgepland sta met projectjes anders had ik me er wel aan gewaagd om een dergelijke override/module te maken.
Link to comment
Share on other sites

Did you resolve your problem? I don't understand your language ;)

Unfortunately not. What beabea wants is to display the shoe sizes in the box-like form like the colorpicker. I explained that's not possible in the current default Prestashop and an override/module would be needed to make that work. Since beabea doesn't have the programming skills and my planning is full at the moment to create such a system the issue isn't exactly resolved.
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...