Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1619310
Product page - You May Be Interested In
Closed

Comments

  • kniemeyer80 started the conversation

    I would like to change the "You May Be Interested In" section on the product pages to show 4 items instead of 6. How can I do this? Great them btw!!!

  •  7,095
    Oliver replied

    Hi,

    Add this code to the functions.php of the child theme:

    function thegem_woocommerce_output_related_products_args_new($args) {
        $args['posts_per_page'] = 4;
        $args['columns'] = 4;
        return $args;
    }
    add_filter('woocommerce_output_related_products_args', 'thegem_woocommerce_output_related_products_args_new', 999);

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver