Page 1 of 1

Show product options on category page

Posted: Fri Nov 01, 2024 11:29 pm
by talentive
Hi,

In a clothing store, sizes of articles are marked as S, M, L, XL etc. Opencart options are used for different sizes. Is there any extension or way available so that all the available options of a product are displayed on category listing? So that user does not have to open a product to see if it is available in a specific size. Please be clear that it is not necessary that a customer can also select an option from there. Just display of available options would be enough.

Re: Show product options on category page

Posted: Fri Nov 01, 2024 11:40 pm
by JNeuhoff
OK, took me 5 seconds on a simple Google search:

https://www.opencart.com/index.php?rout ... n_id=40738

Re: Show product options on category page

Posted: Sat Nov 02, 2024 2:12 am
by softmonke
You can just use the getProductOptions function from "catalog/model/product.php" to pull the available options for each product, and process it from there to be displayed in your product listing. Do also note that you will also need to add this modification into other pages/modules that display product listings, such as search, manufacturer info, special, featured module, latest module, etc.

Or like what @JNeuhoff suggested, you can try looking for an extension that helps you achieve what you need.

Re: Show product options on category page

Posted: Sat Nov 02, 2024 11:44 am
by halfhope
Hi!

If you will have issues with performance after this modifications, check this out. Fast OpenCart catalog functions getProductAttributes and getProductOptions in catalog/model/catalog/product.php.