Skip Navigation

[Resolved] Displaying Related Products on single product page

This support ticket is created 3 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by ericF-5 3 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#2074803
Many-many.png
Buttons.png

Tell us what you are trying to do?
I'm trying to post related products to my single product page, but it's showing some other things. I don't understand why.
When I use the 'Related Products' Toolset block it's showing related products but with different buttons like 'Add to Cart' and then it's taking me to the cart, or 'Select Options' and then it's taking me to the related product single page. Some times there's a button 'Read More' and that one takes me to the single product page.
I want it to display related products, and I think it's pulling other things from somewhere but I can't figure it out.
Is there any documentation that you are following?
I followed how to create a view for related products but it's not the same, I want to relate my products to my products with many to many but it's not possible. I can only relate it to post or media or pages.
Is there a similar example that we can see?
No.
What is the link to your site?
hidden link

#2075183

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Eric,

The related products block is pulling the products based on the current products Product Category.
https://toolset.com/block-item/related-products/

So what you are seeing are the products that are related to the current one based on which product category that it is attached to.

If you check that product's category you should see the same products that are being listed on the frontend.

I want to relate my products to my products with many to many but it's not possible.

This would essentially mean that you're relating the product to another post type. Based on your screenshot you are relating products to Toolset Works.

Is it that you want to list out the Related items in the Many to Many relationship ?

For e.g if you are on Post type A you want to list our the items from post type B on Post Type A?

If that is the case then the documentation below should be able to guide you through this.
https://toolset.com/course-lesson/displaying-related-posts/

Please let me know if this helps.
Thanks,
Shane

#2076971
img.png

This didn't help. My products are showing related products but the buttons with 'READ MORE' 'SELECT OPTIONS' 'ADD TO CART' are still there. I don't understand how are they there? Why is the list like that? How can I redesign it? I didn't create that list of related products. I don't want those buttons there, I want only the product picture, ratings and price but I cant remove the button. What am I doing wrong? This site was previously created and every category is already made, I just need to redesign product list.

#2077131

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Eric,

This happens because you are using the Related Product block. This is how it displays the items by default. This is an inbuilt block created by Woocommerce Blocks.

However there are 2 ways to workaround this. The first method is by using CSS in such a case you will need to provide me with a link to the page to provide the css for you.

The 2nd method is to create your own related products view block in which you can customize how the related products are being displayed.
Our documentation below should be able to guide you through this.
https://toolset.com/lesson-placement/lesson-placements-1666453-1676513/#steps-to-create-a-custom-list-of-related-products

Thanks,
Shane

#2080359

My issue is resolved now. Thank you! I created my own view with related products by custom taxonomies.