Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I think the issue is in Jigoshop Settings / Catalog & Pricing / Sorting via Product Post Order. To display my Products ID for check, I added this code to loop-shop.php:

    $my_products_id = array();
    while ( have_posts() ) : the_post();
    array_push($my_products_id, $post->ID);
    ...
    endwhile;

    and this to the head of products listing area (in the same file) :

    ...
    $content .= '<div><b>' . implode (', ', $my_products_id) . '</b></div>
    ...

    I noticed the products are just listed randomly (not ASC nor DESC) and some POST ID are repeated in the next page. When I change Sort products in catalog by to Post Date, everything is just fine. Product ID are correctly sorted ASC or DESC, depending on which order I choose.

    I guess sorting via Product Post Order means Post ID, which must be like sorting via Post Date (the most recent product is the one with the highest ID or the most recent date). So sorting via Product Post Order must have the same effect like sorting via Post Date for the same order (ASC or DESC). But for some reason, sorting via Product Post Order does not work.

    Hi, I am wondering if you found a way to fix this issue, can you share the solution with others please ?
    I tried to adapt your widget search to also look for product categoy name but it does not work. I tried this code :

    <form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    	<div class="search-area">
    		<div class="form-item"><input type="text" value="" name="s" id="s" placeholder="Rechercher un produit ..." class="search-text-field" onfocus="this.value=(this.value=='Rechercher un produit ...')? '':this.value" onblur="javascript:this.value=(this.value=='')? 'Rechercher un produit ...':this.value"/></div>
    		<div class="form-actions">
    			<input type="submit" id="searchsubmit" value="OK"  class="search-btn-field" />
    			<input type="hidden" name="post_type[]" value="product" />
    			<input type="hidden" name="post_type[]" value="product_cat" />
    		</div>
    	</div>
    </form>

    Hi I have a similar issue. I have per_page = 18, coloms = 3 and a template loop-shop in my theme directory. I noticed the last 6 products of the current page are always listed as 6 first in the next page. The result is the same when i changed per_page to 15 or 12.


    https://malishopping.com/shop/

    Note : the result is the same if I delete the loop-shop file in my theme/jigoshop/ dir.

Viewing 3 replies - 1 through 3 (of 3 total)