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

Viewing 6 posts - 16 through 21 (of 21 total)
  • #147537
    holger
    Member
    Post count: 20

    Hi Mohammad. Thank you. But I already tried this in functions.php The effect is, that on this site (http://hochzeitskartendesign.com/?page_id=66) the mini-products are displayed like i want it.

    But the secondary effect is, that shop-pages (like this: http://hochzeitskartendesign.com/?product_cat=einladung) are forced to display 4 items per row, too. And thats the problem.

    Do you understand what I mean?

    #147540
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please remove last code and use this one new code:-

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

    Thanks
    Mohammad

    #147543
    holger
    Member
    Post count: 20

    I’m sorry, it still doesn’t work 🙁

    #147654
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Finally sorted this through this code:-

    global $woocommerce;
     add_filter('loop_shop_columns', 'loop_columns');
     if (!function_exists('loop_columns')) {
        function loop_columns() {
            if(is_product_category()){
            return 3; // 4 products per row
           }else{
            return 4; 
           }
        }
    }

    Thanks
    Mohammad

    #147664
    holger
    Member
    Post count: 20

    Yeah! This code works!! Thank you very much guys!!
    I’m really happy with your amazing support!

    #147668
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome.
    Thanks
    Mohammad

Viewing 6 posts - 16 through 21 (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