• For the orders made by the admin manually, the system allows giving order to ‘’out of stock’’ products as well. We have already chosen the section that ‘’does not to allow’’ backorders by the way. How can we stop the orders that include out of stock products?

    • This topic was modified 8 years, 2 months ago by eizaajans.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    At the time that a manual order is created, WC doesn’t preclude from items that are marked as “out of stock” as the working assumption is that the order you’re creating might be for one that was made physically in-store (or any number of other use-cases). The onus is thus on you to know the order is out stock because it’s a *manual* order.

    Thread Starter eizaajans

    (@eizaajans)

    So Can I display stock quantity on product description

    Add this shortcode definition to functions.php of your child theme:

    // example usage in product description: Only [show_stock] available!
    // simple shortcode - only works on product page 
    add_shortcode('show_stock', 'show_stock');
    function show_stock() {
      global $product;
      return (int) $product->stock;
    }
    
    Thread Starter eizaajans

    (@eizaajans)

    thank you lorro

    But I want to show the amount of stock here.

    https://demo.ajansbee.com/wp-content/uploads/2017/01/Capture-1.jpg

    • This reply was modified 8 years, 2 months ago by eizaajans.

    Sorry, don’t know. Hopefully someone else can help.

    Thread Starter eizaajans

    (@eizaajans)

    thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Manuel New order allows out of stock products’ is closed to new replies.