Page 1 of 1
Product Options Horizontal to Grid/Rows
Posted: Sat Jul 13, 2019 10:42 am
by tackattic
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.
Re: Product Options Horizontal to Grid/Rows
Posted: Sun Jul 14, 2019 10:07 am
by by mona
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 (61.59 KiB) Viewed 2203 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
Re: Product Options Horizontal to Grid/Rows
Posted: Mon Jul 15, 2019 12:40 am
by tackattic
Thank you!
Re: Product Options Horizontal to Grid/Rows
Posted: Tue Mar 05, 2024 11:06 pm
by raydragon
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