We're Moving to a New Support Platform – Starting June 1st!
We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.
You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.
While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.
We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.
Thanks for your continued support and trust – we’re excited to bring you an even better support experience!
Hi,
I use Amelia with WooCommerce so when a customer selects an event ticket, the price of that ticket is sent to the WooCommerce product in the cart/checkout.
Everything's fine except that I'm using PMPRO to enable membership in order to offer automatic discounts to members, particularly on event ticket prices.
My question is:
- how does Amelia send the price to WooCommerce?
- is it interceptable and at what level ?
So that I can keep the price sent by Amelia (the regular_price), modify it to also include the sale_price in the data of the $product = $cart_item['data'];
This should allow (?), afterward, the whole WooCommerce system to easily display the normal price crossed out and the discounted price afterwards, which seems best to me in terms of user experience.
Since woocommerce has its new block system and removed all the cart and checkout filters, I can't find a simple solution to achieve what I want.
Thank you very much for your help
Kind regards
Hello HK,
Thank you for reaching out to us, and apologies for the delayed response.
Since this is a technical question related to WooCommerce, I’ll need to double-check with our developers to provide an accurate answer. Please note that we do not currently have integration with any membership plugins. However, we can provide more information regarding the WooCommerce integration.
Let me confirm the details, and I’ll get back to you as soon as possible.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and 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
Hello again,
You can use the amelia_get_modified_price filter. However, this hook does not have a parameter of WooCommerce order id at the moment. You can find more information on this link.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and 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
Thank you for your feedback.
Finally I found that using the woocommerce hook is more efficient and permessive.
If anyone's interested, here's what I did.
Intercept the information from Amelia's data table, Woocommerce calculates the cart with this information and with the woocommerce_before_calculate_totals hook you can retrieve the information from Amelia to modify it and recalculate the cart as you like, then return the new data.
Finally, woocommerce_checkout_create_order_line_item saves the new data for each product in the order item data. This means that the information can be used elsewhere, for example in woocommerce invoices or emails.
The only problem is that Amelia doesn't completely retrieve the correct pricing information for its Finance section. There's only the base price (Amelia's ticket price) and the price paid via woocommerce but not the discount price (base price - the discount made with the hook), I don't know if it's possible to send it so that everything is perfect?
Thanks again and kind regards
Hello HK,
Apologies for the delayed response. I'm currently waiting for a detailed explanation from our developers. As soon as I have their feedback, I'll get back to you with an update.
Thank you again for your patience and understanding.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and 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
Hello,
I owe you a reply on this one, as well.
Currently, it's not possible to change the price directly in the database during the booking process. However, if you want to apply a discount, you can create a coupon in Amelia (via the Finance > Coupons section), and then use a hook to programmatically apply it to a booking.
Here’s an example where the ticket price is $20, and we want to apply a 20% discount using the coupon ID 1:
The first hook is for the WooCommerce cart and checkout and the second for the Amelia database.
However there is a slight modification is our code you will have to do for this to work. In src/Infrastructure/Repository/Booking/Appointment/CustomerBookingRepository.php change
':couponId' => !empty($data['coupon']) ? $data['coupon']['id'] : null,
to
':couponId' => !empty($data['couponId']) ? $data['couponId'] : null,
so you don’t have to attach the whole coupon object but just the id. This will be changed in the next update.
I hope it helps.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and 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
Hello,
Thank you very much for your feedback, it was not easy to organize everything but with a little magic I managed to map the different levels (Amelia / woocommerce / PMPRO) to do what I want and it seems to work well by simulating the use of a code (for the Amelia side). Hoping not to discover any problems in the future.
As always I appreciate your efforts to investigate and find solutions.
Thank you very much and I think you can close the ticket!
Kind regards