Post by stampgo7 » Fri Sep 22, 2017 12:07 am

Hi,
how can I solve the problem with the second line with colors as you can see in attached photo? Even if I reduse the size of the photos I got the same result. And available colors are about 40. The only way to show each color is with radio option.
Please help.

Attachments

color.jpg

color.jpg (66 KiB) Viewed 792 times


New member

Posts

Joined
Mon Sep 11, 2017 8:05 pm

Post by yodapt » Fri Sep 22, 2017 1:57 am

You can edit the view file and change the width and height of the image, which will force its size no matter how big it actually is, like this example :

Code: Select all

<img width="20px" height="20px" />

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by stampgo7 » Fri Sep 22, 2017 4:32 am

Can you please give me the directory of this file?

New member

Posts

Joined
Mon Sep 11, 2017 8:05 pm

Post by yodapt » Fri Sep 22, 2017 5:28 am

catalog\view\theme\default\template\product\product.twig

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by stampgo7 » Fri Sep 22, 2017 4:19 pm

There is no this code ''<img width="20px" height="20px" />'', or even ''img width'' in that file.
Should I add this code somwhere?

New member

Posts

Joined
Mon Sep 11, 2017 8:05 pm

Post by yodapt » Fri Sep 22, 2017 8:53 pm

There has to be <img> tags. If you're not using the default theme the code might be different, and only looking at it I can tell you exacly what to change and where.

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm


Post by stampgo7 » Fri Sep 22, 2017 10:51 pm

Actually there is no product.twig in this directory. It is product.tpl

New member

Posts

Joined
Mon Sep 11, 2017 8:05 pm

Post by stampgo7 » Fri Sep 22, 2017 11:20 pm

I found this in that file

$theme_options->get( 'product_page_radio_image_width' ); } else { echo 25; } ?>px" height="<?php if($theme_options->get( 'product_page_radio_image_height' ) > 0) { echo $theme_options->get( 'product_page_radio_image_height' ); } else { echo 25; } ?>px"<?php }

New member

Posts

Joined
Mon Sep 11, 2017 8:05 pm
Who is online

Users browsing this forum: Axlagusti, Semrush [Bot] and 483 guests