The integration works this way, and it doesn't accept more than one product if an Amelia product is present. There's a possible workaround, though.
Please note that this hasn't been thoroughly tested, but a few of our customers have confirmed that it works as expected.
Please access this script: ../wp-content/plugins/ameliabooking/src/Infrastructure/WP/Integrations/WooCommerce/WooCommerceService.php and comment line 604 (it can be on some other line), in the "addToCart" method:
$wooCommerceCart->remove_cart_item($wc_key);
This should allow you to add more than one appointment in the cart.
This method used to work well, but no longer works for me. Has something changed in the last update? Even after editing that line - I can only get one event in the basket at a time.
It is possible that something is changed on their end and if this workaround doesn't work anymore then this is not possible at this time. We are working on a cart feature and this option should be implemented in the next few months.
If you have any more questions please open a new separate ticket for each question and we will gladly help you there.
Hi
Since the last update I can no longer see how to edit the WooCommerceService.php file to allow multiple events to be added to WooCommerce cart.
Previously I commented out the line that said remove_cart_item
Can you please advise how I can allow customers to add more than event to the cart.
Thanks
Mikki
Hello Mikki,
Thank you for reaching out to us.
The integration works this way, and it doesn't accept more than one product if an Amelia product is present. There's a possible workaround, though.
Please note that this hasn't been thoroughly tested, but a few of our customers have confirmed that it works as expected.
Please access this script: ../wp-content/plugins/ameliabooking/src/Infrastructure/WP/Integrations/WooCommerce/WooCommerceService.php and comment line 604 (it can be on some other line), in the "addToCart" method:
This should allow you to add more than one appointment in the cart.
We wish you all the best.
Have a nice day.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Marko and thanks for your reply
This method used to work well, but no longer works for me. Has something changed in the last update? Even after editing that line - I can only get one event in the basket at a time.
Kind regards
Mikki
Hello Mikki,
It is possible that something is changed on their end and if this workaround doesn't work anymore then this is not possible at this time. We are working on a cart feature and this option should be implemented in the next few months.
If you have any more questions please open a new separate ticket for each question and we will gladly help you there.
We wish you all the best.
Have a nice day.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables