Skip Navigation

[Resolved] woocommerce

This support ticket is created 5 years, 1 month 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 5 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#1392997

Hello,

I am doing a event registration page. I have a main product (event registration) with additional items to added to the event registration like number of attendees per room and meals. All this info needed to be in a single page so the customer does not have to keep going back and forth to the main shop page. It would be a sort of variation depending of the amount of attendee.

The goal is to have the regular price displayed, however the attendee can increment the number of attendees which will eventually change the price. The same to the meals, depending the number of attendees the meals will be added to the price. I am aware I might need to apply some conditional functions, but can I have it all in a single page? I want to avoid the customer leaving the product page, and making all options available at the current product page, only departing when going into the order page. Is there documentation for this? All I have seen is just for a single product without much information if I want to modify quantities and price variation.

I have created some custom fields, but how do I have the price from the custom field variation to be available for "add to cart price"?

Thanks

#1393417

Hi,

Thank you for contacting us and I'd be happy to assist.

To achieve what you're planning, the most natural way would be to use WooCommerce's own product variations feature:
https://docs.woocommerce.com/document/variable-product/

Instead of adding custom fields to the products, you can add "Number of attendants" and "Number of meals" as product attributes and add respective terms to those attributes.
( e.g. 1 attendant, 2 attendants, 3 attendants ... & 1 meal, 2 meals, 3 meals ... )

After that, you can create the desired product variations and set the prices to those variations. As a result, your visitors will see the option to select the desired number of attendants and meals on the single product page and the price will automatically update based on the selection.

regards,
Waqar