bookingactivities / booking-activities

Wordpress plugin booking system
GNU General Public License v3.0
28 stars 8 forks source link

BA Doesn't List All Activities in Product Variations #113

Closed yabdali closed 2 years ago

yabdali commented 2 years ago

Hi, For some reason, when I create a product (variable product) and try to populate the variations based on different activities I see only the calendar form name, not the activities configured in that form! I am trying to achieve something similar to this example from your documentation. https://booking-activities.fr/wp-content/uploads/wc-integration-variable-product-1024x823.png

However, I only get a the form name listed (see below). I have purged Cloudflare then set in development mode and also disabled the Cache Plugin, deleted the wp-content/cache and cleared WC transit files/records as well tried to use different browsers but the same result! Would please help?

ba_form

wc_product

yoancutillas commented 2 years ago

Hello, it is normal that you only have a "Booking form" selectbox since Booking Activities 1.5.

If you want to create a variable product with two variations, each one showing events from a different activity, you need to create two distinct booking forms, the first one showing only the events from activity A, the second one showing only the events from activity B, and then bind each form to its corresponding product variation.

yabdali commented 2 years ago

Thanks, I remember about a year ago I had created two events for a variations from the same form. Thats why I went back to check the documentation which I linked to reconfirm its not a confusion from my side. If its ok, would you mind sharing why this feature was changed?

yoancutillas commented 2 years ago

Before 1.5, the "booking forms" objects didn't exist, neither did the "form fields". You needed to set up the "Calendar", "Activity", "Group category", "Groups only" and "Book single events" options in the product data with WooCommerce, or in the booking form shortcode without WooCommerce, and both were processed differently. The form fields were automatically generated without the possibility to add / edit / reorder / remove them. There was a separate shortcode to display a calendar alone, including the calendar showing your customer's booked events, and it was using a separate process too. The options to customize your calendar appearence were in the calendar editor, you couldn't display the editor differently than the frontend calendar, nor display the same calendar twice with different display settings.

Since 1.5, a lot of new options have been added, a GUI has been added to configure them, and they have been centralized in Booking Activities > Booking forms > your form > Calendar settings. Everything can be managed at the same place, and use the same code. The Advanced Forms add-on was released two months later to create customized forms, including on WC product pages (demo).