Comments Balázs Tamasik started the conversationFebruary 5, 2024 at 9:26pmDear TMS PluginsI connected amelia and mailerlite using make.com (with webhook). It works well.But I have a question:Which variable returns the total number of bookings a customer has made so far?Exporting customers has this option, so I thought I would include it here.Attached files: total-bookings.jpg 779Stefan repliedFebruary 6, 2024 at 12:34pmHello Balázs,Thanks for reaching out to us.Let me forward this question to the developers so we can get a precise answer. I will report back as soon as i have feedback from themThank you for your patience and understanding.Kind Regards, Stefan Petrov[email protected] Rate my supportTry 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 779Stefan repliedFebruary 7, 2024 at 11:57amHello Balázs,Depending on the hook you use, it can be achieved with the hook that has $container as a parameter. For example: function my_custom_function ($reservationData, $container) { if ($container && $reservationData && isset($reservationData['booking']['customerId'])) { $customers = $container['domain.users.customers.repository']->getFiltered(['customers' => [$reservationData['booking']['customerId']]]); $customerTotalAppointments = $customers[$reservationData['booking']['customerId']]['totalAppointments'];pa }}add_action( 'AmeliaBookingAddedBeforeNotify', 'my_custom_function', 10, 2 );Let us know if it works.Kind Regards, Stefan Petrov[email protected] Rate my supportTry 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 Sign in to reply ...
Dear TMS Plugins
I connected amelia and mailerlite using make.com (with webhook). It works well.
But I have a question:
Which variable returns the total number of bookings a customer has made so far?
Exporting customers has this option, so I thought I would include it here.
Attached files: total-bookings.jpg
Hello Balázs,
Thanks for reaching out to us.
Let me forward this question to the developers so we can get a precise answer. I will report back as soon as i have feedback from them
Thank you 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 Balázs,
Depending on the hook you use, it can be achieved with the hook that has $container as a parameter. For example:
Let us know if it works.
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