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

Various issues with plugin

Jude Ward

I’m experiencing various issues with your plugin, I’ll do my best top explain…

I’m setting up a Development Installation for a client. The site is built using Elementor Pro and also has the WooCommerce Product Bundle3s plugin activated.

Issue 1 – the variation swatches plugin is causing pricing issues on the product bundles. One of the items from the bundles doesn’t load properly, with the price completely missing. Then the price isn’t taken into account for the final price calculation on the bundle. This issue completely disappears once the Variation Swatches Plugin is disabled.

Issue 2 – the variation swatches are working on the Single Product Pages under the Product Title, but at the bottom of the page the “Related Products” are not loading the correct Variation Swatches. The swatches are crossed out and some text is loading that should not appear.

https://sw2021.wpengine.com/

The security details for the site are:

User: sw2021
Password: 39c4f02a

 

Jude Ward

Please can someone help me with this issue?

Hakik Zaman

Hello Jude,

We are very sorry for our late response. Sometimes it takes time to reply because of long ticket queue.

It’s a development local site, please login here and try to reproduce your issue here.

Note: I have installed WooCommerce, Elementor, Elementor Pro, and Hello Elementor Theme. Please install your WooCommerce Product Bundle plugin.

https://wptestbox.com/101012/wp-admin/

Username: admin

Password: demo

Please let me know, after reproducing your issue there. So that I can refer this issue to our development team.

Hope to hear from you soon.

Thank You

Jude Ward

Hi There,

I have now managed to recreate the first issue on the provided test website…

https://wptestbox.com/101012/?product=bundle-test

If you load up this bundle you can see that the first item has a lot of variation options. When there is one item in the bundle with a high number of variations, the price does not load correctly and the whole bundle calculation does not work.

Let me know if you need any further guidance on this problem?

Jude Ward

Hi There,

Please can someone give me an update on this issue?

I’m very close to launching this website for a client, however, your plugin is causing a few issues which are now holding us back.

I really could do with some support to resolve the following issues…

1.  The issue with the variation swatches causing the WooCommerce Bundles functionality to break (as replicated on your test website).

2. The second issue is that the Variation Swatches Functionality is not working on the “Related Products” section of my Elementor install. Here’s a screenshot of how that section is looking on my website…

Obviously these two issues are now a priority in us launching this website, but if we can’t get any support regarding them, I will need to look for other plugin options. I’d appreciate it if you could acknowledge this as soon as possible and help me find a resolution.

 

Hakik Zaman

Hello Jude,

I have forwarded your issue to our development team. Please be patient with us.

Sometimes it takes time to read other plugin code and make it compatible.

If you want you can temporarily disable the swatch for bundle products only.

Please let me know if you need the snippet to disable swatch for only bundle products.

Thanks in advance for your patience.

Jude Ward

Turning off the functionality on the Bundled Products would be a great help for the time being. Please send me that snippet.

There is also the second issue where the Elementor Related Products are not working properly. Please can you also confirm that you are looking to resolve that problem too?

Hakik Zaman

Hello Jude,

Please use a plugin called Code Snippet and use the below code as a snippet. Or, you can use the below code inside your child theme’s functions.php

add_filter( 'default_wvs_variation_attribute_options_html', function ( $default ) {
   global $post;
   $_product = wc_get_product( $post->ID );
   if ( is_product() && $_product->is_type( 'bundle' ) ) {
      return true;
   }
   return $default;
} );

There is also the second issue where the Elementor Related Products are not working properly.

We are trying to reproduce this issue from our side. Unfortunately, we couldn’t yet. It is happening on random sites but we are aware of this issue.

Thanks

Jude Ward

Thank you for supplying this snippet… however, it does not resolve the problem.

Once added to my functions file, this snippet disables the Variation Swatches on the bundles, but the problem with the items within the bundle not loading prices correctly continues. As a test I then went on to disable both the free and pro versions of your plugin, which I can confirm fixed the issue.

It would seem there is an issue linked to AJAX on the Single Product Pages when your plugin is active on the website.

Is there a way to disable ALL the functionality from your plugin on the Bundles only?

Also, thank you for confirming that you are looking into the Related Products issue.

Hakik Zaman

Hello Jude,

Please remove the first snippet and use the below snippet (just like before)-

function wvs_remove_ajax_variation_bundle(){
   remove_action( 'wc_ajax_get_variations', 'wvs_pro_get_available_variations' );
}
add_action('init', 'wvs_remove_ajax_variation_bundle');

Please let me know if it resolves your issue. Hope to hear from you soon.

Thanks

Jude Ward

Thanks for this, that seems to have fixed the issue on the Bundles pages. I’ll keep doing some further testing and let you know if we come across any further issues.

Jude Ward

Do you have an ETA or a suggestion for a temporary fix for the Elementor Related Products Issue?

I’m just wondering if I need to hide the Variations via CSS for the time being, or if a fix is due soon I’ll wait to launch until it’s released.

Hakik Zaman

Hello Jude,

I am really sorry for your inconvenience. Until we find a solution, you can remove swatches for the related products.

If you turn it off by using CSS, still it will load but will be hidden. You can use the below snippet to hide swatches for the related products.

function remove_swatch_from_single_product(){
   if(is_product()):
      remove_action( 'woocommerce_after_shop_loop_item', 'wvs_pro_archive_variation_template', 7 );
      remove_action( 'woocommerce_after_shop_loop_item', 'wvs_pro_archive_variation_template', 30 );
   endif;
}
add_action('template_redirect', 'remove_swatch_from_single_product');

We are trying hard to find a fix. It will be great if you can help us to regenerate the issue on our test site. I really appreciate your co-operation.

Thanks