Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #257497

    Hi,

    I am using Enfold for this site: http://unearthedartsmn.com
    They are selling art classes and I used the code below from another site (added to the functions.php) to change the “In Stock” to “Seats available” however it doesn’t say how many are available per inventory number. Is there a way for it to say how many seats are available and then adjust downward as the seats are sold? Would it work for both simple and variable products? Some classes have multiple session dates with the inventory being controlled at the variation level.

    add_filter( ‘woocommerce_product_description_heading’, create_function( ”, ‘return “”;’ ) );
    add_filter( ‘woocommerce_stock_html’, create_function( ”, ‘return “<p class=\”stock\”>Seats available</p>”;’ ) );

    add_filter( ‘woocommerce_out_of_stock_flash’, create_function( ”, ‘return “<p class=\”out-of-stock\”>No seats available</p>”;’ ) );

    Thanks for any help you can provide on this issue,
    Jennifer

    #258302

    Hey jenlioness!

    Unfortunately WooCommerce customization/function support isn’t something we can assist with here on the Enfold forums.

    Best regards,
    Devin

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Have Inventory control reflected in "In Stock" display in Woocommerce Products’ is closed to new replies.