WordPress.org

Support

Support » Plugins and Hacks » WP eCommerce » I can't limit the items number in category template tags

I can't limit the items number in category template tags

  • 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?

    thanks

    http://wordpress.org/plugins/wp-e-commerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I can't limit the items number in category template tags’ is closed to new replies.
Skip to toolbar