Joomla 4.1.2 with RSForm! Pro 3.0.6 and RO payments 7.1.0.
I have 2 forms; one is an English version without direct payment via RO-payment; the other is a form in Dutch with iDeal payment.
In the RSForm! field PHP Email Scripts I change the layout of the email using the value of $_POST['form']['my_field']. In the English form (I make no use of RO-payment) this works OK. However in the Dutch form (I use the iDeal payment) all the values of the $_POST fields are empty.
Is there a way for changing the email text when i make use of the iDeal payment option?
regards Ernst.
Hello Ernst,
However in the Dutch form (I use the iDeal payment) all the values of the $_POST fields are empty.
RO Payments does not do anything with the e-mails other than deferring them if needed.
As for the $_POST values I think they are empty because redirects happen until you get back to RSForms, in a redirect you lose your $_POST variables. Although this is more of an educated guess. What I am thinking is that you may need to retrieve the data from the database again based on the submission ID. However I have no idea what is available at the point the script is executed as I have never seen or done anything like this.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Roland,
Your remark about the submission ID reminded me of the array variables $placeholders and $values.
Now I use these arrays to check for the values and can change the mail output as I want.
Thanks!
Log in to reply to this topic.