Product stock notification not working on single product

This topic has 9 replies, 3 voices, and was last updated 1 weeks, 5 days ago ago by Andrew Mitchell

  • Avatar: TheOne
    TheOne
    Participant
    February 26, 2025 at 09:06

    Hello,

    The customer just notify me that product stock notifier is not working (module: product stock).

    1. If you visit product in private (under 1.). You will notice it’s a variable product. 1000 pcs are set to “out of stock” and 300 pcs are on stock. The problem is that it’s not showing the “out of stock” notification instead it shows “in stock” but it’s not.

    2. I have a code in functions.php that always chooses the first variation so that the add to cart button stays active.

    3. If you check in private under 3. you will see a product that is also not in stock but the notification shows just fine.

    Please, contact administrator
    for this information.
    8 Answers
    Avatar: TheOne
    TheOne
    Participant
    February 26, 2025 at 09:11

    Let me add a thing. i have a code that displays in stock status:

    add_filter( ‘woocommerce_get_availability’, ‘custom_override_get_availability’, 10, 2);

    // The hook in function $availability is passed via the filter!
    function custom_override_get_availability( $availability, $_product ) {
    if ( $_product->is_in_stock() ) $availability[‘availability’] = __(‘Na voljo takoj’, ‘woocommerce’);
    return $availability;
    }

    Is this the problem? The theme itself doesnt display stock status?
    I see it works for simple but not variable products.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    February 26, 2025 at 18:22

    Hello, TheOne,

    Thank you for your inquiry. This is a complex issue, and we will need some time to resolve it. We appreciate your patience and understanding.

    Best regards,
    8Theme Team

    Avatar: TheOne
    TheOne
    Participant
    March 5, 2025 at 12:46

    Hello,

    Any updates?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    March 6, 2025 at 11:28

    Hello @TheOne
    Sorry for the delay in answering !
    We made changes in xstore/framework/woo.php file and such changes are also included in latest theme update, so you can update your theme and check the results then.
    Kind regards, Jack Richardson
    The 8theme’s team

    Avatar: TheOne
    TheOne
    Participant
    March 11, 2025 at 13:14

    Hello,

    It still doesnt work. Please check again. Create a variable product with in stock variation and out of stock variation. Then on frontend it should say out of stock when you select out of stock variation and the other should say in stock.

    Access in private

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    March 11, 2025 at 18:00

    Hello, TheOne,

    Could you please provide us with the updated FTP access credentials? The ones previously provided are no longer valid.

    Best regards,
    8Theme Team

    Avatar: TheOne
    TheOne
    Participant
    March 20, 2025 at 07:08

    In private

    Content is visible for topic creator and
    support staff only.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    March 20, 2025 at 16:38

    Hello, TheOne,

    Currently, the access to the admin panel is not working. Could you please provide us with the correct working credentials?

    Thank you in advance for your assistance.

    Best regards,
    8Theme Team

    Files is visible for topic creator and
    support staff only.
  • Viewing 9 results - 1 through 9 (of 9 total)

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

Helpful Topics

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