Post by tackattic » Sat Jul 13, 2019 10:42 am

I hope I am in the right forum. I have searched the internet, opencart forums for a few days and cannot find my answer exactly. I am using 3.02.0 version. I have several color options for shirts/clothing. I would like to know if there is any coding I can change and where to change it to make my product options on the product page in a grid such as 9 rows with 3 colors per row instead of the long horizontal single row. Thank you in advance.

Newbie

Posts

Joined
Sat Jul 13, 2019 10:33 am

Post by by mona » Sun Jul 14, 2019 10:07 am

You can achieve a grid by using
checkbox {
width: 33%;
float: left;
}
checkbox:first-child {
margin-top: -5px;
}
Screen Shot 2019-07-14 at 02.53.21.png

Screen Shot 2019-07-14 at 02.53.21.png (61.59 KiB) Viewed 2167 times

In theory you can add this to your css file, but it will change checkboxes everywhere.

You could add the css to your catalog/view/theme/default/product/product.twig page only ------- using the css within the tags <style> </style>
You could edit your catalog/view/theme/default/product/product.twig page ----- adding this to the actual checkbox lines of code

and this extension allows images in a select dropdown
https://www.opencart.com/index.php?rout ... n_id=37073

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by tackattic » Mon Jul 15, 2019 12:40 am

Thank you!

Newbie

Posts

Joined
Sat Jul 13, 2019 10:33 am

Post by raydragon » Tue Mar 05, 2024 11:06 pm

dear Mona
would it be possible to pay you for adding this grid to my site?
and i have another project that i could use your help with

Newbie

Posts

Joined
Thu Oct 12, 2023 10:27 pm
Who is online

Users browsing this forum: No registered users and 14 guests