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
- This topic has 8 replies, 3 voices, and was last updated 12 years, 3 months ago by
caimano.
-
AuthorPosts
-
November 10, 2011 at 1:55 am #4728
Charlie
MemberI 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
November 10, 2011 at 4:05 am #38330admin
KeymasterThere 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
November 10, 2011 at 6:42 am #38331Charlie
MemberOh I see they are in the extra shortcodes plugin. Thank you!
November 11, 2011 at 1:22 am #38332Charlie
MemberIs there somewhere we can see what all of these examples look like?
July 22, 2013 at 3:32 pm #38333caimano
MemberHow 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
July 22, 2013 at 11:50 pm #38334admin
KeymasterTry the following PHP code which will show a random product:
do_shortcode('[wp_eStore_random_products number=1 style=1 type=1]')July 23, 2013 at 8:17 am #38335caimano
MemberHi, 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]’); ?>
July 23, 2013 at 11:05 am #38336admin
KeymasterYour 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.
July 23, 2013 at 3:59 pm #38337caimano
MemberOk, 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.
-
AuthorPosts
- You must be logged in to reply to this topic.