Skip Navigation

[Resolved] Is it possible to show two Woo product at one posttype?

This support ticket is created 6 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 6 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#902588
postrelationships.png

Tell us what you are trying to do?
Hi, I need some help, because I can't make it work 🙂 I want to display a Location (Posttype) which can have multiple Workshops (postype). Each workshop will have two rounds (Workshop round 1 and Workshop round 2) These rounds are Woocommerce products, which should be easely added to cart..

I created a one-to-many relationship where (one) Location can have (many) Workshops. And created a one-to-many relationship where (one) Workshop can have (max 2) rounds (=Woocommerce product). I have tried many views, but cannot get a "add to cart" button to show on the locationpage.. Can you give me a hand...

Is there any documentation that you are following?
Yes, I've read all docs about the relationships.

Is there a similar example that we can see?
I try to achieve this: hidden link
This is now al handwork, connecting with tags and so on, but a little buggy and labour intensive... 🙂

What is the link to your site?
Is a blank localhost install

#902839

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - You can use WooCommerce Views plugins and use shortcode [wpv-woo-buy-or-select] to display "Add Product" and Quantity box with product listing page.

[wpv-woo-buy-or-select add_to_cart_text='Add Product' link_to_product_text='' group_add_to_cart_text='' external_add_to_cart_text='' show_quantity_in_button='yes' show_variation_options='no']

I've created test page for you: hidden link
As you can see with above page with each product - its displaying "Add Product" and Quantity button.

You can use our free test platform <string> discover-wp.com and use WooCommerce reference site:
=> https://discover-wp.com/register/?site_type=660

You should create test site with above and try to play with that and use the shortcode I shared above to display "Add Product" and Quantity box.

More info:
=> https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-woo-buy-or-select