I’m using the “Woodmart Products” carousel widget on my homepage, and I would like to customize it to display the last image from the product gallery as the main thumbnail, instead of the default featured image.
This change should only apply to a specific carousel where I’ve added a custom el_class — for example: usar-ultima-imagem.
So far, I’ve tried using the woocommerce_get_product_thumbnail and woodmart_product_image hooks, and also some conditional logic based on $_POST[‘shortcode_atts’][‘el_class’], but none of them seem to affect the product image in the carousel as expected.
Is there a recommended way (hook, override or filter) within the Woodmart theme to target and change the thumbnail output specifically for one carousel based on its el_class?
Thank you in advance!
Best regards