Thank you for the reply. Changing the theme did not work. That is, I changed it to the WordPress TwentyTwenty theme and saw no difference.
So, let me provide some details:
Step 1: I created a page Redemption Codes (page id=490) and used this shortcode:
[s2Member-Gift-Codes discount=“100%” quantity=“4” singulars=“358” /]
Note: singulars=“358” is the page id of the page Redeem Codes which was created in Step 3 below.
Step 2: I restrict the Redemptions Code page (page id=490) through the settings at
s2Member (Pro)->Restriction Options->Specific Post/Page Access Restrictions
Step 3: I create the page Redeem Codes (page id=358) using the shortcode shown above and repeated here:
[s2Member-Pro-PayPal-Form level=“2” ccaps="" desc=“Extra Family Member / Coupon used for 12-month membership.” ps=“paypal” lc="" cc=“USD” dg=“0” ns=“1” custom=“my sites URL” ta=“0” tp=“0” tt=“D” ra=“10.00” rp=“1” rt=“Y” rr=“BN” rrt="" rra=“2” accept=“paypal” accept_via_paypal=“paypal” coupon="" accept_coupons=“1” default_country_code="" captcha=“0” /]
Note: accept_coupons=“1” is set and this ProForm is intended to create a level 2 user.
Step 4: I created a page Purchase Codes (page id=363) and use the s2Member (Pro)->PayPal ProForms->Specific Post/Page (Buy Now) Forms to create this shortcode:
[s2Member-Pro-PayPal-Form sp=“1” ids=“490” exp=“1” desc=“Additional Family Member Redemption Codes” ps=“paypal” lc="" cc=“USD” dg=“0” ns=“1” custom=“my sites URL” ra=“0.01” accept=“paypal” accept_via_paypal=“paypal” coupon="" accept_coupons=“1” default_country_code="" captcha=“0” /]
Now, I test out the pages:
- Beginning from a logged out status, I register a new user with userid = user1.
- User1 logs in and goes to page Purchase Codes and complete the purchase.
- I then follow the Thank you … click here link which takes me to the Redemption Codes page id=490.
Here is the problem or perhaps my misunderstanding. The page that I am sent to has variables tacked on on the URL, the URL looks like:
mySiteURL/redemption-codes/?s2member_sp_access=ZGVmNT … shortened here … 2RjNGE5#
However, if User1 tries to return to the page using a link to the Redemptions Code page that I might provide for them and obviously does not have the URL variables, I don’t get back to that users page, rather, I get this URL instead and the page presented is the Welcome Options page.
mySiteURL/membership-options/?_s2member_vars=sp…sp…490…page…490…L3JlZGVtcHRpb24tY29kZXMv&_s2member_sig=1601307498-05492190441eaf99099b8737b825d7f4
What am I doing wrong? Or, do I misunderstand how this is suppose to work?
And yes, when I use the saved URL that is returned after the purchase of the codes using the click here link, this page does expire in 1 hour as I specified in the shortcode.
Thank you in advance,
Bill