Home Forums WC Vendors Pro Support Show In Stock Quantities in Vendor Dashboard

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #77355
    Anan Mohammed
    Participant

    Hi,

    In the Vendor Dashboard > Products Tab I think it would be a useful addition if we were to show what quantity of a particular product is in stock rather than Stock Status: In Stock / Out of Stock.

    This would be a useful addition at the product level. I’ve gotten this done in the backend using the following code:

    add_filter( 'woocommerce_admin_stock_html', 'tmt_show_variation_stock_level', 10, 2 );
    
    function tmt_show_variation_stock_level( $stock_html, $the_product ) {
    
        if( sizeof( $the_product->get_children() ) ) {
    
            $stock_html .= ' (' . $the_product->get_total_stock() . ')';
    
        }
    
        return $stock_html;
    
    }

    How can we replicate this on the Vendor Dashboard?

    PS: I am not versed in PHP so a copy & paste solution for my functions.php file is welcomed.

    #77475
    Anna
    Member

    Hello,
    I have added this request to our list of enhancements for a future update, if possible. Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.