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

Variation swatch does not show proper stocl

Hunor Szocs

Hello,

 

We have a woocommerce page where we use variation swatches. It works without issues, but on the home page it does not add the cross over out of stock items. It shows as if it would be in stock. We use Divi theme. Can you assist us?

Rezwan Shiblu

Hi Hunor,

Thanks for reaching out to us.

We have a woocommerce page where we use variation swatches. It works without issues, but on the home page it does not add the cross over out of stock items.

I have checked your website and noticed that the single product and shop page works without issue and that the only problem is with the home page.  Let me explain the issue.

If you use any builder, sometimes it may not work. Because sometimes builders implement their own loop in place of WooCommerce’s default shop loop. Our swatches plugin works on the default woocommerce loop and just turns the default dropdown variation to swatches.

However, in that case, I have two solutions for you. You may select anyone.

Solution 1: You can get in touch with your builder development team and provide them with the hook listed below so they can add it inside this Divi module (https://prnt.sc/mSi64YCSoumu). Due to the fact that you used this module on the home page.

<?php do_action('wvs_pro_variation_show_archive_variation'); ?>

Solution 2: Since you already used this(https://prnt.sc/Jyf6wBNJCmxp) Divi module on the shop page, which is why the shop page is functioning properly, you may use it on the home page as well. This module uses the default woocommerce loop.

I hope you get a clear idea about this matter.

Thank you.