Number of sold items as product attribute
Q: Is it possible to show a number of already sold items in product description and it should increase automatically after each transaction?
A: There's a meta that tracks total sales on a product:
total_sales. Use something like this to echo the total
sales:
echo get_post_meta(PRODUCT_ID_HERE, '_js_total_sales',
true).
You have to put it inside the PHP files or use this plugin to allow PHP in your posts.
-
Getting Started
-
Jigoshop Settings
-
Creating Products
-
Using Jigoshop
-
Customize Jigoshop
-
Testings - in case of problems on Jigoshop web site
-
FAQ - Jigoshop plugin user questions
- Add a new tab to a product page / Custom tabs on product pages?
- Adding a Continue Shopping button to the single product page
- Adding Product Category Terms in a dropdown box for Custom Post Meta
- Add Alternate text on product picture and title
- Adding buttons / info to the end of each product
- View all (171 more)
-
FAQ - Jigoshop extensions user questions
-
API
-
Screencasts