Variable Price and Stock Status not showing for some variable products
-
Hi, we have found that for some (and only some) variable products, the variable price and stock status have disappeared. When I deactivate the plugin, they come back. Can you offer some help with this, please?
The page I need help with: [log in to see the link]
-
Hi,
Thanks for reaching out to us. We need more information to understand the issue you’re facing.
- Can you tell us more about your variable product in questions? Which variations showed up and which didn’t?
- When you say “When I deactivate the plugin, they come back” , you mean you deactivate our plugin. Correct? Please elaborate more on this
Also, it will be better if you can provide us screenshot(s) to help us understand it better.
Hi, thanks for the prompt response. To answer your questions:
1. Here are links to variable products that don’t show the variation pricing/availability (when they should):
Here is an example of a product where they do show:
2. Yes, you are correct. When I deactivate your plugin, the variation pricing and availability come back again.
My client has asked me to deactivate the plugin until it has been resolved, but I will re-activate it again now so that you can see the issues.
Not working product screenshot: https://snipboard.io/nCJhkO.jpg
Working product screenshot: https://snipboard.io/LWerMx.jpgThanks for sending these across. We need a couple of more information to fix the issue.
- In the product page you listed, please clearly tell us what variations were set to discontinued by you (P,R, R1/2 etc.), what variations are set on backorder and what are in stock.
- Can you please provide a screenshot of the backend of any variation which disappeared after you ‘discontinued’ it in the product you listed in comment above?
- Also, can you share the list of all the plugins you have installed on the siteon the site along with their versions ? It looks like a plugin conflict to us.
- Please mention your current WordPress version and also the theme name and version.
1. In the products that I sent through, none are marked as discontinued. In this product: https://www.cityoflondonjewellers.co.uk/product/rings/engagement-rings/diamond-gemstone-engagement-rings/platinum-aquamarine-diamond-three-stone-ring-rpt00103/
Only size ‘L’ is in stock, the rest are marked as available on backorder.2. This isn’t an issue with a discontinued product. It is an issue with your plugin seemingly clashing with the WooCommerce variations.
3. Yes, it is a plugin conflict – when I deactivate your plugin, the variation pricing and availability appear again. The plugins on the site are:
Avada Builder – Version 3.8.1
Avada Core – Version 5.8.1
Classic Editor – Version 1.6.2
Code Snippets – Version 3.2.0
Contact Form 7 – Version 5.6.3
Cookie Notice & Compliance for GDPR / CCPA – Version 2.4.0
Discontinued Product Stock Status for WooCommerce – Version 1.0.2
Google Listings and Ads – Version 2.1.1
LayerSlider – Version 7.3.0
SiteGround Optimizer – Version 7.2.1
WooCommerce – Version 6.8.2
WooCommerce PayPal Payments – Version 1.9.3
Woocommerce Products Per Page – Version 1.2.6
Wordfence Security – Version 7.6.1
WPBakery Page Builder – Version 6.9.0
WPFront Scroll Top – Version 2.0.7.08086
Yoast SEO – Version 19.6.1
Yoast SEO Premium – Version 19.2.1`
4. WordPress 6.0.2 running Avada Child theme.Thanks for providing these information.
If you are not marking any variation or any product as discontinued, then there is no reason that our plugin will conflict with yours. However, we’ll check that out.
Also, this bring us to a question – If you’re not using our plugin for Disconinued products, then I’m a bit curious as to why do you need our plugin in the first place?
Just trying to understand the purpose you are using it for.Sorry, I think you misunderstand. We are using your plugin, but just not on the products that you have asked me to show you. It is affecting products that are not marked as discontinued.
Okay. Got it. We have gone through your list of plugins. We don’t see any plugins that could possibly conflict with our plugin. So there could be 2 things that could be possibly conflicting –
1. Some code in your child theme’s function.php – It could be the case where your developer might have added the code that affects the variation in some way.
2. Theme itself – Many times theme developers customize the code to an extent that can cause conflicts with plugins. In fact, we experienced an issue in one of our other plugins were theme was the reason for the conflict.
So, I have 2 questions for you –
1. Can you please check for any code in functions.php of child theme and see if there is anything related to variations ? Also check for code in the ‘code snippets’ plugin.
2. Do you have a staging site? If yes, can you please try another theme temporarily like Storefront and see if the issue still exists?
Hi, thank you for continuing to help. To answer your questions:
1. Here is the child theme’s functions.php file:<?php function theme_enqueue_styles() { wp_enqueue_style( 'avada-parent-stylesheet', get_template_directory_uri() . '/style.css' ); } add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function avada_lang_setup() { $lang = get_stylesheet_directory() . '/languages'; load_child_theme_textdomain( 'Avada', $lang ); } add_action( 'after_setup_theme', 'avada_lang_setup' );
No code snippets are related to product variations. The only 2 code snippets that we have are to show pagination at the top of the shop page and to show the number of products in each product category/sub-category. When I deactivate both of these snippets the problem still exists. It is only when I deactivate your plugin that the problem rectifies itself.
2. I have created a staging site and swapped the theme over for Storefront as you have suggested and sadly the issue still persists: https://www.staging4.cityoflondonjewellers.co.uk/product/rings/engagement-rings/diamond-gemstone-engagement-rings/platinum-aquamarine-diamond-three-stone-ring-rpt00103/
Thanks for trying this out. Since the issues persists, there is something else that is causing problems. So as we were checking your site, we found a couple of errors on your website when we try to place an order on variation product. One is a WooCommerce error that shows up just above product title after I select on variation and click on “Add to Cart” and one in the browser console that states that a jQuery file related to variations is missing.
Check this outSo, I want you to provide and try this out –
1. Disable our plugin from the backend of the staging site and and see if you are able to add to cart from the product that has the problem. Let me know if the WooCommerce error in the screenshot still shows up.
2. Now, if the issue still persists after Step #1 – Disable SG Optimizer on your staging site and again try to add to cart from the product that has the problem. Let me know if the WooCommerce error in the screenshot still shows up.
3. Provide PHP version of your hosting service.
Hi, to answer your latest questions:
1. I have now deactivated your plugin from the staging site and the error is removed and I can add the product. No woocommerce errors are shown. Feel free to test this yourself.2. Problem does not persist.
3. We are using PHP version 7.4.30
I’ve just noticed that your plugin was updated. I updated it and it appears to have sorted the issue. Can you confirm that this was due to the update?
We have already tested this in atleast 5-6 themes (including Storefront) and we have also tested in our couple of local testing sites. No matter what we do, we aren’t able to recreate this error. Besides 10+ users (also having variations products) are already using it and they haven’t reported any such problems. There seems to be something unique about your case.
1. Can you Disable SG Site optimizer and then reactivate our plugin and see if the issue still exists? I have found a few support tickets where people have got the same WooCommerce error I shared you with SG Optimizer. You can check this outhere.
Yes, we made an update . We made few small fixes but they seemed unrelated to your issue.
You can test it one more time and let me know if the issue got really fixed.Well that’s a strange one indeed. I have cleared the cache a couple of times, still have SG Optimiser activated and it does appear to have sorted the issue out.
Thank you again for your support with this.
- The topic ‘Variable Price and Stock Status not showing for some variable products’ is closed to new replies.