Forum Replies Created

Viewing 4 posts - 16 through 19 (of 19 total)
  • Posted in:
  • in reply to: Showing less products than possible #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?

    in reply to: Showing less products than possible #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.

    in reply to: Showing less products than possible #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;
    }
    }
    in reply to: Showing less products than possible #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.
Viewing 4 posts - 16 through 19 (of 19 total)