Hi every body
I have configured the paypal redirect and the paypal listener in my form and almost everything works.
Now OnVerified event in Paypal listener action I have a confirmation email (Email [GH]), in the body of this email I wont to print some values from the form (or from the data base), so I write like this {cfu_name} etc but when the email is sent I cannot se the value but just: {cfu_name}.
So Following this FAQ: http://www.chronoengine.com/faqs/57-cfv4/cfv4-actions/2583-how-to-use-the-paypal-redirect-action.html
I insert a DB Record Loader in the paypal listener action, but now I dont know how to call the data in the emal body.
Please some one can help me?
Many Thanks
Fabrizio
Hi Fabrizio,
The "db record loader" is loading the data ? for this you need to read the last section in the FAQ link you posted, your PayPal redirect should pass the record id to Paypal under the "custom" parameter, and your form data should be saved before that!
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Max
Thanks for your reply.
All seems to configured in correct way, the paypal redirect has the custom parameter, all the data are saved by a db save action before the paypal redirect.
In the paypal ipn i Olso have a db save to update a value that works correct .
Is there a way to see if the data are loaded by the db load action?
Thanks fabrizio
If the "db read" in in the listener event then you can use this line of code inside an Email action which can be sent to you:
<?php
print_r2($form->data); // in v5 it should be pr($form->data);
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Fabrizio,
I have removed some of the data for privacy!
The data you have is the data returned from PayPal, you need a correctly configured "db read", in the "table" select the table you saved the data to, in the "request param" add "custom", in the "db field" add "cf_id", then try again.
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
:-) Thanks Max the problem was that leave empty the "db_field" now it works,
Just two more questions
1) can I delete the custom code I mentioned before?
2) can I use in the same way A multi Record Loader to take the data from two different tables and use it in the email?
I need to get the customer name and email which are stored in another table linked with the previous one with a "cfu_id" field
Thanks a lot
Fabrizio
Hi Fabrizio,
A Multi Record Loader is used for getting multiple records from the *same* table. If you want records from two tables the simplest way is probably to use two DB Load actions, one for each table (or you could write a Custom Code action to do one compound MySQL query if you prefer).
Yes, you can probably delete the Custom code. If in doubt, comment it out and test before finally deleting it.
Bob
Thanks Bob
I'll follow you advice.
Fabrizio