Problem after Transfer
-
Hi,
I am using your plugin in a slightly unconventional way, so please bear with me. I have the Transfer shortcode ([mycred_transfer]) on a page, but I have used a function in my theme file to put it there, and have used some php to automatically fill the amount and the ref in the shortcode – this all works perfectly. The transfer is to an ‘escrow’ account to be held and then passed on if certain things occur; however I need to email two users to inform that that the transfer has been done; the user making the transfer and another user, which means I have to use something other than the Email Notifications add on to do so. I have a function/action in my theme file that does this using wp_mail, which works, and I first tried to trigger this using the mycred_transfer_completed action, but this didn’t work and I have not been able to figure out why, so that is my first query.However I am now trying another way; looking at the html of the transfer shortcode I could see that the button to transfer the points did not have a ‘name’ attribute, so I added one using javascript (‘transfer’), and then have tried to use an if (isset($POST[‘transfer’])) statement to start the sending of the email (as I have another button visible on the same page to Cancel the transaction where this method works), but this is not working either! So that is my second query, whether there is something in the transfer shortcode/process that is preventing this working?
Finally, I would like to ask if there is a way to redirect to another page after clicking the ‘OK’ button on the Transaction Completed modal message box rather than just reloading the existing page, which is confusing for users – I have tried to dig into the code to find something that I could manipulate this with, as well as to alter the appearance of the modal, but I am not having any luck with it. Just some key points for me to look for such as where I can find the relevant code and if it is actually possible without having to alter core myCred files would be a good start.
Sorry to be a pain but I have been struggling with this for nearly a week and just keep hitting dead ends.
P.S. I should add that the transfer goes through, as the on screen notification appears, and the user’s balance changes so this is not an issue of it being declined or failing.
- The topic ‘Problem after Transfer’ is closed to new replies.