-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: show donation receipt immediately after donation #3705
Comments
cookie_name class property will automatically set in set_cookie_name function, so no need to set explicitly ref #3705
After
|
@ravinderk While working on issue #3556 I've noticed that when logged in with admin and accessing the donation history and then clicking on any of the donation receipts always trigger the latest donation receipt. I doubt that it is fetching the donation receipt from session instead of the actual donation receipt. My findingsCommenting line https://github.com/WordImpress/Give/blob/release/2.3.0/includes/shortcodes.php#L291 solves the problem. But, need to check whether it is impacting any other area or not. |
@mehul0810 This issue has been fixed, testing and close this issue (if fixed) |
Closing this issue as it is working fine as per the commit above by @ravinderk |
Current Behavior
Currently, I will see email access form (if enabled) or login form in place of receipt immediately after donation. Few server cached webpage and even do not allow to pass cookies between pages. Give needs cookies information to setup Database session for a donor.
Host on which we detected the issue:
Solution
Few servers allow cookie which has the name with a specific prefix but currently we do not has a filter to edit Give session related cookie. So to solve this issue we have to create new filters which allow the developer to rename session related cookie.
Update
Since WPEngine does not has a workaround to pass cookie between pages, we have to pass the cookie with ajax param (receipt ajax request) and load donor session with that.
Important links:
https://pantheon.io/docs/cookies/
The text was updated successfully, but these errors were encountered: