fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Product variation images not showing when swatch is clicked

JEAN JOHNSON

Hello,

We have the pro version of the swatch plugin installed.

Previously, when we clicked on a swatch color – configuration – the image for that product variation showed.

About a week ago – this stopped working:
https://moderndesignsofas.com/product/post-sofa/

What could be causing this?

Tanvirul Haque

Hi JEAN JOHNSON,

Thank you for reaching out to us. Please kindly do a plugin compatibility check by doing these steps to identify the error :

=> Deactivate all of your additional plugins except WooCommerce and WooCommerce Variation Swatches Plugin.

=> See if the problem persists. If the problem resolved, you can tell which plugin might be the culprit of this error by activating your additional plugins one by one.

Looking forward to hearing from you soon.

Thank you

JEAN JOHNSON

Thank you Tanvirul.

I did contact the Beaver Builder support and they said this:


Are you using a third-party plugin for the product variations swatches as it looks like it. If so, Beaver Themer only supports native WooCommerce functionality and not that added by a third-party plugin. If you’re using a third-party plugin for the product variations then you will need to contact the variation plugins developer and ask them how they’re overriding the WooCommerce templates and if they use WooCommerce hooks what hooks are they using. Then they may be able to make it work with Beaver Themer layouts. :)”

I am using the Beaver Builder Themer.

Is it possible to make the hooks work with Beaver Themer?

Thank you so much!

Tanvirul Haque

Hello JEAN JOHNSON,

We do not override any WooCommerce templates from our swatches plugin, we just add swatches to the default hook of WooCommerce woocommerce_after_shop_loop_item which default hook is removed by Beaver.

Here is the temporary fix, please put the following PHP code inside your child theme functions.php
function bb_wvs_support(){
if(class_exists('FLThemeBuilderLoader')):
if (is_shop()):
add_action( 'fl_builder_post_grid_after_content', 'wvs_pro_archive_variation_template', 7 );
endif;
endif;
}
add_action('wp', 'bb_wvs_support');

Thanks

JEAN JOHNSON

I did add the code to the BB Child theme functions PHP file.

But it still does not work.

Is there something else we can target?

Also, strangely, when I click on ‘quick view’ of a product on the category page – I am able to see all the swatches – see screenshot. Just not on the single product page.

If we have to get this customized to work – how much will that cost?

 

Tanvirul Haque

Hello JEAN JOHNSON,

If the temporary fix does not work please contact with Beaver team and ask them to add the WooCommerce default hook woocommerce_after_shop_loop_item which one they have removed.

Thanks

JEAN JOHNSON

Hi Tanivirul – Can we hire someone to fix this?

We are getting desperate for a fix.

Thank you.

Tanvirul Haque

Have you contacted with Beaver team? Are they able to place the Woocommerce default hook? woocommerce_after_shop_loop_item

If they need our cooperation then you can connect them with us. Here is our contact email [email protected]

Thanks