Related products
-
How do I set related products with the product’s setting without adding plugins?
-
Hello,
If I understood correctly, you would like to show related products but without using plugins.
There is a Stackoverflow page that explains how to do it using custom code, you can check it out here.
Note: It is highly recommended to use a plugin like Code Snippets to add custom PHP code into your site without directly accessing the functions.php file. Here is an article that explains how to use the Code Snippets plugin.
I understand you were clear about
With no pluginsjust in case you change your opinion I wanted to leave this tutorial with some alternatives to consider to show related products, cross-sales, and up sales:Set up WooCommerce Related Products, Up-Sells, and Cross-Sells
I hope this provides clarity. Thanks 🙂
-
This reply was modified 4 years, 1 month ago by
Igor H.
Hey, I don’t mind plugins but I think it need to be part of WooCommerce, now the related products are random? I don’t understand how they set.
Hi @mstudioil
Thanks for your response.
it need to be part of WooCommerce
WooCommerce already has inbuilt ways to display related products in a number of ways, as Igor mentioned, even without using any plugins. This documentation will help you understand and implement it: https://woocommerce.com/document/related-products-up-sells-and-cross-sells/
now the related products are random? I don’t understand how they set.
Please go through the documentation and give it a try. If you are unable to set things up the way you want to and need help, let us know exactly what you are looking to achieve, and we’ll be here for you.
Cheers
We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, the above info was helpful.
If you have further questions, please feel free to open a new topic.
I was busy with other sites, none of the solution is working as I wanted
I want to manually control the “Related Products”
This is what is written “Related products are displayed automatically by WooCommerce by a random choice” I don’t want the automatically and random option.Hello,
By default, WooCommerce pulls products that share the same tags or categories as the current product.
There isn’t an official WooCommerce extension that allows to manually control related products, but these third party plugins below seem to offer the feature you are looking for:
https://wordpress.org/plugins/wt-woocommerce-related-products/
https://wordpress.org/plugins/manual-related-products-for-woo/ -
This reply was modified 4 years, 1 month ago by
The topic ‘Related products’ is closed to new replies.