- This topic has 2 replies, 2 voices, and was last updated 12 years, 7 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Suggestion for enhancements
I would like to suggest a couple enhancements for future versions…
1.) A new “style” for product displays. You could call it “Simple List” or something. The site I am developing will have a lot of digital download files (hundreds) in multiple categories. I would like a way to produce a list of products where each item is displayed in as compact a format as possible, so that I can display quite a few on one page.
2.) Related to above…Add an optional parameter to display/not display the image of the item. In my case, I will not have images for all these files, so I don’t want anything to display. I modified the code to not display the image for now.
3.) Add an option to not display a product on a list if the available qty is zero. In my case, users will be able to download a product 50 times. After that, it will not be available to anyone ever again. I will eventually end up with hundreds of products that have zero available qty. I do not want these clogging up the list of products. I have fixed this for my needs (in style 2) by adding the following code in eStore_misc_functions.php.
function show_product_fancy_style2($id,$button_type=1,$show_price=1,$restriction=”)
{
global $wpdb;
$products_table_name = WP_ESTORE_PRODUCTS_TABLE_NAME;
$ret_product = $wpdb->get_row(“SELECT * FROM $products_table_name WHERE id = ‘$id'”, OBJECT);
// Added this code
if (empty($ret_product->available_copies))
{
return;
}
// End of added code
Take a look at fancy display 9 which is a simple display template. You can then use it with the category shortcode to display a list of products:
http://www.tipsandtricks-hq.com/ecommerce/stylish-product-display-options-for-wp-estore-829
Thanks for your suggestion. I was thinking Style9 was for MP3s. This is pretty much what I wanted.
However, I still had to add the code (to the style 9 format now) to not show any items with zero available qty. I think this would be a good option to add in the future.