Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Split Category Listings across multiple pages
Tagged: pagination
- This topic has 5 replies, 3 voices, and was last updated 10 years, 6 months ago by Allcow Jim.
-
AuthorPosts
-
September 19, 2012 at 5:34 am #7434PChipMember
I searched and read many forum strings about categories before asking this question. If I missed the answer somewhere please point the way for me.
I want to show all the products in a particular category and am doing so with short code:
[wp_eStore_category_products_fancy id=1 style=3 order=2 type=0] to get the look I want.
However, because the number of products in the category will grow very large, scrolling a long page of products will not be the look I’m wanting. Is there a way (short of creating more categories) for me to show this list with 10 or so products per page and the pages of products linked with a “next page” or “pages 1,2….5,6” type hyperlink?
EXAMPLE: First page of list would include products 1-10 and second page would show products 11-21, etc.
If no, then my eStore Shortcode wishlist now includes a short code that would act same as above short code, except add the option to indicate a range of product id’s to include in the list.
EXAMPLE:
Code for first page: [wp_eStore_category_products_fancy id=1 style=3 order=2 type=0 id=>0 and <11]
Code for second page: [wp_eStore_category_products_fancy id=1 style=3 order=2 type=0 id=>10 and <21]
Thanks for any assistance you can offer.
~Cindy/PChip
September 19, 2012 at 11:22 pm #49471adminKeymasterThat shortcode will automatically paginate and split your product listing across multiple pages. Go to eStore settings and specify how many products you want to show per page and eStore will paginate it when your product number in a category goes over that number.
You can specify this number in the following field of eStore settings:
Products Per Page Limit
September 20, 2012 at 8:55 pm #49472PChipMemberHow did I miss that? Totally awesome!
Thanks.
April 25, 2014 at 9:48 am #49473Allcow JimMemberI am using the shortcode:
[wp_eStore_download_now_button_fancy_no_price id=8]
as I have a large number of free downloads to distribute.
This code does not seem to automatically paginate – I have set the limit to 8 in the eStore settings. Is there any way I can do that and have the product listing across multiple pages?
April 26, 2014 at 3:19 am #49474adminKeymasterThat shortcode is a ONE item display shortcode. Pagination can only work when you are using a shortcode that is showing a COLLECTION of items.
So put all those products in a category then use the following shortcode which shows them with download now type button and doesn’t show any price:
[wp_eStore_category_products_fancy id=1 style=1 type=4 show_price=0]
Check the shortcode documentation for reference:
http://www.tipsandtricks-hq.com/ecommerce/wp-estore-shortcodes-and-functions-reference-460
April 29, 2014 at 8:52 am #49475Allcow JimMemberThanks – that makes sense.
-
AuthorPosts
- You must be logged in to reply to this topic.