(PayPal Pro usage, the connection to paypal sandbox is functioning properly and sending all emails)
I see that **some** fields are going into the membership confirmation email from general email configuration and other fields are going into the paypal option field.
Task: We’d like to get a single email that represents the order.
I’ve read the documentation, and it states ” If you use PHP tags, please run a test email with print_r(get_defined_vars());” (which is almost the same as the internal $GLOBALS variable.) I can see the values are there, just probably have my placeholders wrong.
Standard s2Member fields used:
s2member_pro_paypal_checkout[first_name]
s2member_pro_paypal_checkout[last_name]
s2member_pro_paypal_checkout[email]
s2member_pro_paypal_checkout[username]
s2member_pro_paypal_checkout[password1]
s2member_pro_paypal_checkout[password2]
s2member_pro_paypal_checkout[street]
s2member_pro_paypal_checkout[city]
s2member_pro_paypal_checkout[state]
s2member_pro_paypal_checkout[zip]
s2member_pro_paypal_checkout[card_number] (Don’t care about these, for reference only)
s2member_pro_paypal_checkout[card_type]
s2member_pro_paypal_checkout[card_expiration]
s2member_pro_paypal_checkout[card_verification]
s2member_pro_paypal_checkout[country]
(all of the internally generated hidden fields)
Custom fields used:
s2member_pro_paypal_checkout[custom_fields][last_period]
s2member_pro_paypal_checkout[custom_fields][absorbancy]
s2member_pro_paypal_checkout[custom_fields][ordercomments]
s2member_pro_paypal_checkout[custom_fields][per_period]
Our shortcode (it’s actually dynamically generated, so this is one of three levels used)
[s2Member-Pro-PayPal-Form level="1" ccaps="" desc="1 Box" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="(obscured).com" ta="" tp="1" tt="M" ra="9.00" rp="1" rt="M" rr="1" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" success="https:/(obscured).com/dev/thank-you?user_email=%%user_email%%&full_name=%%full_name%%&street=%%street%%&city=%%city%%&state=%%state%%zip=%%zip%%&label%%label%%&subscr_id=%%subscr_id%%&initial=%%initial%%&recurring=%%recurring/regular_cycle%%&last_period=%%last_period%%&absorbancy=%%absorbancy%%&per_period=%%per_period%%&ordercomments=%%ordercomments%%" /]
(A second problem: none of our values are being passed in the thank you page, but we’re still working thorugh that and may figure it out.)
Our PayPal Options -> ProForm Email Configuration template. We’ve also put the same template in the General -> Email Configuration -> New User email as a test, and as mentioned, some values show in one, other values in the other.
Dear %%first_name%%,
Thank you for subscribing to (company name). Below are the details of your order:
Subscriber Information
%%full_name%%
%%user_email%%
%%street%%
%%city%%, %%state%% %%zip%%
Subscription Information
Subscription: %%label%%, %%item_name%%
Subscr. ID: %%subscr_id%%
Last Period: %%last_period%%
Per Period: %%per_period%%
Absorbancy: %%absorbancy%%
Charges today: $%%initial%%
Recurring charges: $%%recurring/regular_cycle%%
Comments/Special Instructions: %%ordercomments%%
You may review your subscription status at any time by using the user name and password you created during signup and logging in here:
%%wp_login_url%%
If you have any trouble, please feel free to contact us.
Best Regards,
(company)
Result for Signup Confirmation email: user_email, all address info, label, last period, per_period, absorbancy, ordercomments, (level) label, WP login URL are all blank.
Result for the user name/password email: full_name, all address info, item_name, subscriber ID, initial, recurring/regular_cycle are all blank, but the fields that are missing in the first email are all present here.
We really don’t care which email we use, or that it sends two, but need to figure out how to get all of the order info into one email. What am I missing?