I am using jigoshop for wordpress ecommerce. I am going through a problem where I can see only 5 products per page in my shop page. I don't know what is wrong. Here's a screenshot of my shop page:
Here you can see the Next
pagination thing in the bottom of the page after 5 products. Where as, I have this configuration in the jigoshop admin
:
Here it says 5 page per column (which is working), but, 30 products per page, which isn't working. Is there any solution for this problem? Do I need to edit any code page for this?
I solved this myself though.
<?php
global $columns, $per_page;
do_action('jigoshop_before_shop_loop');
$loop = 0;
if (!isset($columns) || !$columns) $columns = apply_filters('loop_shop_columns', 4);
//if (!isset($per_page) || !$per_page) $per_page = apply_filters('loop_shop_per_page', get_option('posts_per_page'));
//if ($per_page > get_option('posts_per_page')) query_posts( array_merge( $wp_query->query, array( 'posts_per_page' => $per_page ) ) );
This is the code what I had before in templates/loop-shop.php
. I removed the two inline comments //
and make it work. The final look of the code:
<?php
global $columns, $per_page;
do_action('jigoshop_before_shop_loop');
$loop = 0;
if (!isset($columns) || !$columns) $columns = apply_filters('loop_shop_columns', 4);
if (!isset($per_page) || !$per_page) $per_page = apply_filters('loop_shop_per_page', get_option('posts_per_page'));
if ($per_page > get_option('posts_per_page')) query_posts( array_merge( $wp_query->query, array( 'posts_per_page' => $per_page ) ) );
Cheers!