PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

But now links/buttons for external websites

s2Member Plugin. A Membership plugin for WordPress®.

But now links/buttons for external websites

Postby ebarcena » October 8th, 2011, 11:08 pm

I'm trying to generate a buy now link or button for an external website in pure html (no php). The s2member pluggin's Resulting PayPal® Button Code is giving me php values that are not compatible with my external html site. Even when I change the file name extension to php the button wont work. When I do this the button disappears and I can see the following error message only when viewing the source code:

Fatal error: Call to undefined function s2member_value_for_pp_inv() in /misc/6/000/257/825/8/user/web/mysite.com/index.php on line 166

Are this values really necessary???:
Code: Select all
<!-- Configures s2Member's Unique Invoice ID/Code  -->
<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; ?>" />


or can I go with out them??

Thanks
User avatar
ebarcena
Registered User
Registered User
 
Posts: 3
Joined: October 8, 2011

Re: But now links/buttons for external websites

Postby Cristián Lávaque » October 9th, 2011, 2:43 pm

I think you can do without them, but am not sure. What I know is that your button won't be encrypted and someone can edit it.

You could, instead, create a button over at PayPal following Jason's instructions, and it'll work in an HTML page without PHP, and also integrate with s2Member to manage the user's access. viewtopic.php?f=36&t=309#p1333

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot] and 2 guests

cron