Total sales shown on web site front end
Q: I want to output the total sales on the front end. Is there a function I can use for this, also it would be the total for processing sales not pending, etc. I'm going to use Jigoshop for a large project that involves the customer base knowing the total sales.
A: Total sales are a post meta so you can fetch it just like any other using get_post_meta like so:
<?php echo get_post_meta($post->ID, '_js_total_sales', true); ?>
-
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