romannmsk
Forum Replies Created
-
Forum: Plugins
In reply to: [Payment forms, Buy now buttons, and Invoicing System | GetPaid] Return URLThanks for the answer, but this option is not suitable.
The situation is as follows – when a person pays through the world-pay on the world-pay site, he does not return him back to the site. in the settings of the worldpay, you can specify a custom url to return to the page like “thank you for your
purchase”.We would like to return the user to the site and show him a sign with details about his purchase and the result of the transaction.
Thanks a lot, the problem was solved! ??
thanks for your advice!
at the beginning I tried adding this snippet to a custom plugin – it didn’t work.
then added function.php from the template to the file – it did not work either.
after I added a “stop” to the loop process and this is what was found – when the first_name field is found, the script stops, and if you go to the admin panel and see the user data, they will already be new (changed).
foreach ( array_keys( getpaid_user_address_fields() ) as $field ) { var_dump($field); die(); if ( $field == 'first_name' || $field == 'last_name' ) { continue; }
maybe some of the function changes the data earlier?
even if you comment out all this function and its call and then submit the form, the name data will be updated
- This reply was modified 3 years, 9 months ago by romannmsk.
in my custom plugin
also I just tried adding to the functions.php file from the template – it didn’t helpgetpaid_save_invoice_user_address updates the address, but I need to prevent updating the first name and last
thanks for the info. tried adding this line but the result didn’t change. first and last user is still updated when the guest submits the form ??
The situation is as follows – there is a registered account that wants to make payments by indicating his email in the data, but on the name and surname of his relatives, and at the same time he does not want this data of relatives to be overwritten in his main account. however, he does not mind that letters will come to his mail.
I need to understand where in the scripts the account data is being rewritten, if the system already has such a registered email.