Comments Claudia started the conversationDecember 17, 2019 at 9:39amHi, is it possible to enable/disable the related products in the single product page? And where can i set the number of related products visible?Thank you 7,092Oliver repliedDecember 17, 2019 at 10:54amHi,You can remove it with this filter: remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 ); Or change the count with this one: 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); Add this code to the functions.php of the child theme.Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. Regards, OliverClaudia repliedDecember 17, 2019 at 5:17pmI got it! Thank you 7,092Oliver repliedDecember 18, 2019 at 7:39amYou're welcome!Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. Regards, Oliver Sign in to reply ...
Hi, is it possible to enable/disable the related products in the single product page? And where can i set the number of related products visible?
Thank you
Hi,
You can remove it with this filter:
Or change the count with this one:
Add this code to the functions.php of the child theme.
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver
I got it! Thank you
You're welcome!
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver