Variable products showing “This product is currently out of stock and unavailable.”

This topic has 14 replies, 4 voices, and was last updated 1 months, 2 weeks ago ago by Jack Richardson

  • Avatar: d88dcjj
    d88dcjj
    Participant
    January 8, 2025 at 21:42

    I have many products displaying “This product is currently out of stock and unavailable.”

    I am currently using the Xstore child theme. I noticed that when I activate the main Xstore theme, the problem goes away.

    Why is this? What is going on here? Should I use the main Xstore theme instead of the Xstore child theme then moving forward?

    13 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    January 9, 2025 at 06:27

    Hello, @d88dcjj,

    Thank you for contacting us and for using XStore.

    We understand your concern regarding the message “This product is currently out of stock and unavailable” appearing for many of your products while using the XStore child theme. Based on the information you’ve provided, it seems that the issue may be related to customizations or modifications made within the child theme.

    Child themes are designed to allow users to make changes to the theme’s functionality or appearance without affecting the main theme. However, conflicting customizations in the child theme can sometimes lead to unexpected behavior, such as the issue you’re experiencing.

    To address your concerns:

    1. **Why is this happening?**
    The issue likely stems from custom code or settings in the child theme that are overriding the default functionality of the main XStore theme. This could include outdated templates, custom functions, or other modifications.

    2. **What is going on here?**
    When you activate the main XStore theme, it uses the default settings and functionality, which is why the issue disappears. The child theme, on the other hand, may have customizations that need to be reviewed and updated to ensure compatibility with the latest version of the main theme.

    3. **Should you use the main XStore theme moving forward?**
    If you do not require the customizations in the child theme, you can continue using the main XStore theme. However, if the customizations are important for your website, we recommend reviewing the child theme’s code to identify and resolve the issue. You may need assistance from a developer to ensure the child theme is properly updated and compatible with the main theme.

    We suggest the following steps:
    – Temporarily switch to the main XStore theme to confirm that the issue is resolved.
    – Review the customizations in your child theme, particularly any code related to product availability or stock status.

    Please let us know if you need further assistance. We’re here to help!

    Best regards,
    8Theme’s Team

    Avatar: d88dcjj
    d88dcjj
    Participant
    January 9, 2025 at 18:20

    I haven’t made any significant changes to the child theme, just all basic customizations. I need to use the child theme though, so I need you to fix it.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    January 10, 2025 at 05:04

    Hello, @d88dcjj,

    Thank you for your response.

    To better understand the issue you are experiencing, we kindly request that you record a video demonstrating your actions and the problem. Please upload this video to any file-sharing service https://fex.net/ and provide us with the link.

    Please provide the URL of the page on which you are facing the issue for my better understanding so we can check and help you.

    We appreciate your cooperation and look forward to resolving your query promptly.

    Best regards,
    8Theme’s Team

    Avatar: d88dcjj
    d88dcjj
    Participant
    January 10, 2025 at 17:59

    Video attached.

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    January 13, 2025 at 09:43

    Dear @d88dcjj,

    We hope this message finds you well.

    Could you kindly assist us by disabling all third-party plugins and then testing the solution provided in the following link: https://wordpress.org/support/topic/products-with-variation-shows-out-of-stock/#post-11873318?

    Please let us know the outcome at your earliest convenience.

    Thank you for your support.

    Best regards,
    The 8Theme Team

    Avatar: d88dcjj
    d88dcjj
    Participant
    January 13, 2025 at 18:34

    Why would this need to be done if the problem isn’t occurring on the main theme and only the child theme? Clearly the problem is the child theme, not any plugin conflicts.

    Avatar: Justin
    Luca Rossi
    Support staff
    January 14, 2025 at 12:58

    Dear @d88dcjj,

    After reviewing the issue, we have determined that it is not related to either the child theme or the parent theme.

    Upon inspecting some of the variation products, we noticed that custom attributes were being used instead of the global attributes (as highlighted in the red square here: https://tinyurl.com/2ym7bgtm).

    To resolve the issue, we switched to the global attributes, and the product is now functioning correctly: (https://www.kinkycloth.com/products/daddy-cursive-unisex-jersey-short-sleeve-tee/).

    We kindly request that you review each product and update the attributes accordingly to ensure everything works as expected.

    Should you have any questions or require further assistance, please do not hesitate to reach out.

    Best regards,
    The 8Theme Team

    Avatar: d88dcjj
    d88dcjj
    Participant
    January 14, 2025 at 18:15

    Why was switching to the parent theme instead of the child theme fixing the problem then?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    January 15, 2025 at 16:13

    Dear @d88dcjj,

    Thank you for reaching out to us.

    It is indeed unusual that this issue occurs exclusively with the child theme. We have explored several possibilities, but unfortunately, none of them have led us to a definitive solution.

    To assist you further, could you kindly provide us with FTP access to your website? This will allow us to examine the code and investigate the behavior of the child theme when it is activated on your site.

    We appreciate your cooperation and look forward to resolving this matter for you.

    Best regards,
    8Theme Team

    Avatar: d88dcjj
    d88dcjj
    Participant
    January 15, 2025 at 19:33

    Attached FTP details.

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    January 16, 2025 at 14:05

    Dear @d88dcjj,

    I hope this message finds you well.

    Thank you for providing us with the FTP details. We have reviewed the issue and implemented a solution by adding the following snippet to your child-theme/functions.php file:

    add_filter('woocommerce_ajax_variation_threshold', function($value) {  
        return 200;  
    }, 999);

    Upon investigation, we found that the default value for this setting is the same in both the parent and child themes. However, for some reason, applying this snippet resolves the issue with the variation “Add to Cart” form on your single product pages in child-theme.

    Additionally, this adjustment allows for a greater number of variations to be displayed. Without this filter, the display of variations could be restricted due to limitations within the WooCommerce code.

    Please let us know if the issue is now resolved on your end or if you require any further assistance.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: d88dcjj
    d88dcjj
    Participant
    January 17, 2025 at 20:35

    Ok thanks but I am noticing other issues now too with child theme. For example when child theme is activated, the “Shop All” button on the Home page takes incredibly long time to load, sometimes doesn’t load at all. This does not happen when parent theme is activated. I tried 5 separate times and got same result.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    January 18, 2025 at 14:16

    Dear @d88dcjj,

    We kindly request that you create separate topics for each of your questions to help us address your concerns more effectively. Additionally, we would greatly appreciate it if you could provide more details, such as screenshots or a video of the issue, to assist us in better understanding and resolving the matter.

    Thank you for your understanding and cooperation.

    Best regards,
    Jack Richardson
    The 8Theme Team

  • Viewing 14 results - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.