New Landing How can we help? Themeforest Theme Support Neighborhood Showing less products than possible

Viewing 15 posts - 1 through 15 (of 21 total)
  • #145164
    holger
    Member
    Post count: 20

    Hi there! I’m wondering that the theme is showing just 3 items instead of possible 4 per row. I’ve set the ‘shop product’-item to a size of 3/4 and the product size to ‘mini’.
    do you have any idea how to use the full width of 3/4? Please take a look to the attachments.
    Thank you!!

    Attachments:
    You must be logged in to view attached files.
    #145335
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please refer this article http://docs.woothemes.com/document/change-number-of-products-per-row/. Hope that should help to you.
    Thanks
    Mohammad

    #145551
    holger
    Member
    Post count: 20

    Hi Mohammad,
    thanks for your reply. I’ve inserted the code

    `add_filter(‘loop_shop_columns’, ‘loop_columns’);
    if (!function_exists(‘loop_columns’)) {
    function loop_columns() {
    return 3; // 3 products per row
    }

    and it worked well.
    Now I have another problem, because this script not just applies to the mini-products but also to the standard-sizes products. Do you have any idea what code I can add?
    Thank you very much!

    Attachments:
    You must be logged in to view attached files.
    #145686
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Do you want 3 products in row at shop page as you attached screenshot?
    Thanks
    Mohammad

    #145722
    holger
    Member
    Post count: 20

    Hi,
    I’m sorry, i meant 4 rows. so i set the code like this:

    add_filter(‘loop_shop_columns’, ‘loop_columns’);
    if (!function_exists(‘loop_columns’)) {
    function loop_columns() {
    return 4;
    }
    }
    #145723
    holger
    Member
    Post count: 20

    And i want 4items per row for the mini-products and 3 items per row for the standard-products.

    #146094
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    For mini products, you can customize the Number of items in the page builder element Products (mini) for standard products in the shop, you can customize that with the above code.

    Let us know,

    Thanks,
    laranz.

    #146096
    holger
    Member
    Post count: 20

    Hi Laranz,
    I think I have to explain my problem in other words:

    We want to display the mini-product-item with four columns. BUT in a width of 3/4 of the grid. at the moment it just displays 3 times (take a look at the first screenshots I uploaded).

    with the code i’ve posted above i can set the columns to 4. but it effects not only the mini-products, but also the standartsized ones, I’ve showed you with the third screenshot.

    Is there any possibility that the code affects just to the 3/4 mini-product-item?

    #146788
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me specifix page url with issue and wordpress admin login detail.
    Thanks
    Mohammad

    #146870
    holger
    Member
    Post count: 20
    This reply has been marked as private.
    #146969
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    You mean you want to display this 4 per column? http://take.ms/FoYnC

    Let us know,

    Thanks,
    laranz.

    #146982
    holger
    Member
    Post count: 20

    Yes thats right.

    #146993
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Try this, open up \includes\swift-framework\sf-content-display\sf-products.php in line #365 – #371 you will find lines like this.

    $args = array(
    	'post_type' => 'product',
    	'post_status' => 'publish',
    	'product_cat' => $category,
    	'ignore_sticky_posts'   => 1,
    	'posts_per_page' => $item_count
    );

    Try to change that to,

    $args = array(
    	'post_type' => 'product',
    	'post_status' => 'publish',
    	'product_cat' => $category,
    	'ignore_sticky_posts'   => 1,
    	'posts_per_page' => $item_count,
            'columns' => 4
    );

    Didn’t test, but it will work fine, if not let me know.

    Let us know,

    Thanks,
    laranz.

    #147184
    holger
    Member
    Post count: 20

    Hi Laranz, thanks for your afford! Sadly it doesn’t work. When I insert it at the position you said nothing happens … to you have any further idea?

    #147191
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue so please check it now.
    USED CODE:-

    if(!is_archive()) add_filter('loop_shop_columns', 'loop_columns');
     if (!function_exists('loop_columns')) {
    	function loop_columns() {
    		return 4; // 4 products per row
    	}
    }

    Thanks
    Mohammad

Viewing 15 posts - 1 through 15 (of 21 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register