latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Tracy Hickman

Sorry, I've not written a description yet. I'll get to it soon!


My Favorite Topics

Viewing topic 1 (of 1 total)
Topic Count Last Reply
Adding Values to the Paypal Short Code

By:  Tracy Hickman in: Community Forum

voices: 2
replies: 4

3 years, 11 months ago  Tracy Hickman

Viewing topic 1 (of 1 total)

My Latest Replies (From Various Topics)

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Friday Jan 25th, 2013 at 9:23 pm #39587

I appreciate it. I’ve been battling work around for two days and finally gave up. The PHP in the HTML code is constantly being corrupted by WordPress and/or my theme every time I go to edit it. In the end I have had to make all my payment buttons for that site on the Paypal site, have people who make the purchase sign up for a level 0 account and then manually change their account to their subscription level. It’s not a very good work around but at least it allows me to complete sales.

I think s2member is an amazing plugin and ideal for my digital sales sites … I hope you can see the need for adding that one variable to the shortcode … it would certainly make my life vastly simpler.

Posted: Thursday Jan 24th, 2013 at 11:45 am #39420

I saw the ‘no_shipping’ directive in the shortcode but since our subscription includes a physical product, I also have to include the ‘weight’ directive to PayPal. This means that I cannot use the short code for these purchases and must, instead, use modify the HTML code and use that instead.

I might suggest this single shortcode addition as a valuable capability in the future. Even if it were not a menu option for the plugin, those of us who deal with both subscriptions and associated physical product (buy the book and receive this subscription as well) would greatly enjoy it’s convenience.

Posted: Tuesday Oct 9th, 2012 at 4:18 pm #27928

I have deactivated everything except s2member and tried reinstalling wordpress but neither of those resulted in any change in the displayed for the pages. I, too, am at a loss to explain this behavior. I run several different wordpress installations with this same theme and with s2member as well without this issue.

Continuing to investigate.

Posted: Thursday Sep 20th, 2012 at 11:30 pm #26016

After a long session with my IP support, the following solution worked:

The original script read, in part, as follows:

<input type="hidden" name="invoice" value="&lt;?php echo S2MEMBER_VALUE_FOR_PP_INV(); ?&gt;" />
<!-- Identifies/Updates An Existing User/Member ( when/if applicable )  -->
<input type="hidden" name="on0" value="&lt;?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?&gt;" />
<input type="hidden" name="os0" value="&lt;?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?&gt;" />
<!-- Identifies The Customer's IP Address For Tracking -->
<input type="hidden" name="on1" value="&lt;?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1; ?&gt;" />
<input type="hidden" name="os1" value="&lt;?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1; ?&gt;" />

Support asked me to modify the script by changing all

&lt; values to < and all &gt; values to >

in the five instances in the above script.

The script now reads:

<input type="hidden" name="invoice" value="<?php echo S2MEMBER_VALUE_FOR_PP_INV(); ?>" />
<!-- Identifies/Updates An Existing User/Member ( when/if applicable )  -->
<input type="hidden" name="on0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?>" />
<input type="hidden" name="os0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?>" />
<!-- Identifies The Customer's IP Address For Tracking -->
<input type="hidden" name="on1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1; ?>" />
<input type="hidden" name="os1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1; ?>" />

Now the script appears to be working perfectly.

Posted: Thursday Sep 20th, 2012 at 3:31 pm #25987

I have now installed the PHP Execution plugin as both excellent responses suggest. I certainly see the need for it now.

Unfortunately the behavior apparently remains the same. When I click on the button now after installing the plugin, the resulting PayPal page still shows an ‘option’ with the PHP scripting after it as described above which would seem to indicate that the PHP is still not executing.

Thoughts?

Viewing 5 replies - 1 through 5 (of 5 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.