News:

Looking for documentation? Take a look on our wiki

Main Menu

Category thumbnail on product?

Started by EvanGR, July 30, 2019, 15:31:56 PM

Previous topic - Next topic

EvanGR

Hello,

I want to include images/thumbnails from certain categories the product is assigned to, to the product page.

Sort of like badges that give the customer important compatibility information.

The ideal code logic would be something like this:
1) Check which categories this product is assigned to.
2) From these categories, keep only the ones that are children of category X.
3) From the resulting categories, get their images (ideally the resized), and display them here in the template.

Any ideas or examples to achieve that?

Thanks