Home › Forums › WoodMart support forum › Changing what “Related Products” shows
Changing what “Related Products” shows
- This topic has 5 replies, 2 voices, and was last updated 1 year, 2 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
February 15, 2024 at 6:55 pm #540540
anton-8481ParticipantOn a single product page at the bottom we have the “Related Products” carousel. It is hard coded to show products with the same tags and/or within the same category. This is not helpful for us, since we use attributes a lot more than tags. I want to change this to show products from the same manufacturer or be able to change it to certain attributes.
I found the woocommerce / single-product / related.php file, but it seems to only modify the look, not the content.
Could you tell me how I would go about changing this or at least point me to the right .php file, so that I could experiment?
Thanks.
February 16, 2024 at 1:12 pm #540692
Aizaz Imtiaz AwanKeymasterHello,
Related Products is a section on some templates that pulls products from your store that share the same tags or categories as the current product.
These products cannot be specified in the admin, but can be influenced by grouping similar products in the same category or by using the same tags.
For more details please check this documentation:
https://quadlayers.com/customize-woocommerce-related-products/Hope this helps!
Best Regards.
February 17, 2024 at 4:38 pm #541023
anton-8481ParticipantThank you for pointing me to that documentation, but it doesn’t tell me how to change it from tags to attributes. We have an attribute for the manufacturer, which I would like to use. Is there no way to change it?
Also, regarding the category, it only looks at the parent category, not the sub-category. That gives very random results, most often not helpful.
February 19, 2024 at 10:57 am #541270
Aizaz Imtiaz AwanKeymasterHello,
Could you please check how it works with the default wordpress theme just to check whether the issue is with our theme or not.
Best Regards.
February 19, 2024 at 4:10 pm #541392
anton-8481ParticipantThat’s not really a possibility, I don’t have an closed environment for doing such a drastic change to our webshop. I was just hoping some of the gurus here would know how to do this.
February 19, 2024 at 5:08 pm #541429
Aizaz Imtiaz AwanKeymasterHello,
In general, the “Related Products” section comes from WooCommerce so please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand if is it our theme issue or not.
Looking forward to hearing back from you!
Best Regards.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register