Product order
Q: I’m trying to order products by the end-of-sale day. I’ve tried different code but with no success.
A: Put below code in your Theme’s functions.php;
add_filter('jigoshop-request', 'orderjigoshopbysaledatesto');
function orderjigoshopbysaledatesto($request) {
$request['orderby'] = 'meta_value';
$request['meta_key'] = 'sale_price_dates_to';
$request['order'] = 'DESC'; // longer sales first
return $request;
-
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