WP eCommerce
I can't limit the items number in category template tags (3 posts)

  1. steven.c84
    Posted 2 years ago #

    Hello. I need to limit the number of product to display in one category list.
    I paste the code <?php echo wpsc_display_products_page( array( 'category_url_name'=>'last-product' ) ); ?> in the right template page and it work but i'd like to show only 4 or 5 products.
    How i can do it?



  2. jmessick9
    Posted 2 years ago #

    I used the shortcode [wpsc_products category_url_name='test-category' number_per_page='4'] not sure if this will help.

    Here is the doc's on the shortcodes.

  3. steven.c84
    Posted 2 years ago #

    Finally i activated the pagination and paste this code on the template page <?php echo wpsc_display_products_page( array( 'category_url_name'=>'last-product', 'limit_of_items'=>'4' ) ); ?>
    Than hide the pagination menu through css.
    i think it's not the best way but it work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic