%appointment_price% – The price of the appointment – this combines the price of the service, along with the price of additional people or extras.
In a way that I can use it in a call to recieve a customized QR ( "https://chart.googleapis.com/chart?cht=qr&chs=300&chl=SPD*1.0*ACC:CZ2803000000000315401001*AM:%appointment_price%*CC:CZK*X-VS:202300%appointment_id%" )
Unfortunately I need an INT not a STRING, because the tag returns price with currency, and that will not work for my usecase ( banking app doesn't allow reading this QR.
The question: can you help to customize the tag to recieve "150" not "150$" ? I've tried to use php script in HTML email editor to remove char, but it will not allow me.
We just got the feedback from our colleagues and they have told us that you can use "amelia_manipulate_email_data" filter.
We used it like this:
function example_callback( $data ) { $data['body'] = str_replace('AM:$', 'AM:', $data['body']); // Or in your case, since you use // "Price Symbol Position: After" something like this: // $data['body'] = str_replace('$*CC', '*CC', $data['body']); return $data; } add_filter( 'amelia_manipulate_email_data', 'example_callback', 10, 3 ); You can add this script to wp-content/mu-plugins/functions.php or in the functions.php file of your child theme.
So you'll have %amelia_dynamic_placeholder_unformatted_appointment_price% (in this example) placeholder without currency symbol and you can use it in your QR string.
We are delighted to hear that you managed to set this up to suit your needs and should you have any further inquiries, we kindly request that you open separate tickets for each question and we will gladly help you there.
We wish you all the best and hope you have a wonderful day ahead.
Hello,
I would need to use this tag:
%appointment_price% – The price of the appointment – this combines the price of the service, along with the price of additional people or extras.
In a way that I can use it in a call to recieve a customized QR ( "https://chart.googleapis.com/chart?cht=qr&chs=300&chl=SPD*1.0*ACC:CZ2803000000000315401001*AM:%appointment_price%*CC:CZK*X-VS:202300%appointment_id%" )
Unfortunately I need an INT not a STRING, because the tag returns price with currency, and that will not work for my usecase ( banking app doesn't allow reading this QR.
The question: can you help to customize the tag to recieve "150" not "150$" ? I've tried to use php script in HTML email editor to remove char, but it will not allow me.
Many thanks !
JM
Hello there,
Thank you for reaching out to us.
Not sure if this is possible to achieve at this time. We will take a look and contact you as soon as we have more information.
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
Hello again,
We have forwarded this to our developers and as soon as we get feedback from them we will contact you again on this ticket.
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
Hello again,
We just got the feedback from our colleagues and they have told us that you can use "amelia_manipulate_email_data" filter.
We used it like this:
And here is the result:
Best regards.
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
Hello,
first of all I appreciate your support - rate it 10/10 🙂 . I have additional question:
It takes $data - an array of all tags which can be used in custom email msg. Does it mean that every tag will be affected by this filter ?
Would it be possible to create a function which would affect only %appointment_price% and create new tag %unformatted_appointment_price% ?
Maybe something like this could work - return str_replace('%unformatted_appointment_price%', ..........); instead of $data
So it will be always possible to have tag:
%appointment_price% to get 500$
%unformatted_appointment_price% to get 500
Could help me on this - check if it is feasible and send me updated code.
Thanks in advance.
JM
Hello again and thank you for the compliments we try to help as best as we can.
You can use dynamic placeholder:
like this:
You'll get this:
So you'll have %amelia_dynamic_placeholder_unformatted_appointment_price% (in this example) placeholder without currency symbol and you can use it in your QR string.
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
Hello,
thanks. I have modified into the function like this:
function example_callback($data) {
if ($data && isset($data['appointment_price'])) {
return number_format(floatval(str_replace(['Kč', ',', ' '], '', $data['appointment_price'])), 0, '.', '');
}
return '';
}
To get from 1,490.00 Kč -> 1490
And that works absolutely fine for me.
Thank you for the support.
JM
Hello again,
We are delighted to hear that you managed to set this up to suit your needs and should you have any further inquiries, we kindly request that you open separate tickets for each question and we will gladly help you there.
We wish you all the best and hope you have a wonderful day ahead.
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