WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Edit Stock display on list page (3 posts)

  1. MrMacintosh
    Member
    Posted 1 year ago #

    Woocommerce comes with the option of changing when to list the number of stock left when it gets below a certain number you set. This works when you're on a product page, but on the list of products to choose from, the actual stock is always displayed. Is there a way to change this to only listing "In Stock" just like on the product page?

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

  2. jameskoster
    Member
    Plugin Author

    Posted 1 year ago #

    WooCommerce doesn't display the stock status on product archives. Perhaps it's the theme you're using?

  3. MrMacintosh
    Member
    Posted 1 year ago #

    You may be right because I looked all into the woocommerce plugin and wasn't able to locate the code for displaying the stock on the list page. So if it is the theme, then I am sure the "stock" variable is not listed as such in its code. If I am right, woocommerce transforms the blog portion of wordpress into a shop. So, how would a theme grab this variable for displaying purposes? What would be the variable then?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.