WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Quantity Sold (2 posts)

  1. winningsem
    Member
    Posted 1 year ago #

    How to get the quantity sold of a single product?

    this
    <?php echo $product->$total_stock?>

    and this

    <?php echo $product->get_stock_quantity()?>

    get the quantity left, but i want to display the quantity sold

    http://wordpress.org/extend/plugins/woocommerce/

  2. winningsem
    Member
    Posted 1 year ago #

    I found the solution it was pretty easy
    WooCommerce add a custom field with the product sold you can just echo it
    <?php echo get_post_meta($post->ID, 'total_sales', true); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.