- This topic has 8 replies, 3 voices, and was last updated 11 years, 4 months ago by .
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 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 › WP eStore General Questions › How do you add a "Latest Additions" section?
Tagged: latest products list, wp shopping cart
I am brand new to using this plugin and I’ve read most of the documentation. I will have a basic store with several categories on different pages. I would like to have a “Latest Additions” section on my home page that automatically displays the last, say, 12 products I have added to the site.
How is this done? Do I have to do it manually?
Similarly, is it possible to have a “Most Popular” section of your top 10 selling products?
Thank you!
Charlie
There are shortcodes for latest, popular and random products. Check the shortcodes list and you will find it:
http://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460
Oh I see they are in the extra shortcodes plugin. Thank you!
Is there somewhere we can see what all of these examples look like?
How can I add a Random Additions section using PHP Function Reference? I used this short code : [wp_eStore_random_products number=1 style=1 type=1] but now i must use the PHP Function Reference, which is it? Fabio
Try the following PHP code which will show a random product:
do_shortcode('[wp_eStore_random_products number=1 style=1 type=1]')
Hi, the code works perfectly, but not yet, when I insert it in the post, is always displayed the last piece of string on the web page ‘);?>
The following syntax is the one I used to insert the php code on the page, is that correct? :
<?php echo do_shortcode(‘[wp_eStore_random_products number=6 style=3 type=1]’); ?>
Your syntax looks correct to me. Check your code to see if you have an extra set of ;?>
characters in your code on this page.
I thought you wanted to use it in the sidebar? If you are using it in a WordPress post/page, you don’t need to use the PHP syntax, use the shortcode directly in the post.
Ok, i will use shortcode directly in the pages. No, there are not extra set of ;?> characters in the code of my blank post, it’s very strange. Thanks for answers.