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™

Customised Subscription Billing

s2Member Plugin. A Membership plugin for WordPress®.

Customised Subscription Billing

Postby k4yti » June 25th, 2010, 5:56 am

Hi

How would it be possible to set up a PayPal Button that charges a subscription monthly billing with an extra 7days in the first month? The simplest solution would be to do 7days free then monthly subscription billing, however I want the first payment taken at the beginning of the term not after the 7 free days.

Thank you again for a great wp plugin.

Katie
User avatar
k4yti
Registered User
Registered User
 
Posts: 7
Joined: June 23, 2010

Re: Customised Subscription Billing

Postby Jason Caldwell » June 26th, 2010, 2:15 am

Hi Katie. Thank you!

Yes, but ONLY with PayPal Standard integration.
You'll want to use the Full Button Code, instead of the Shortcode format.
In the Full Button Code, change variables: a1, p1, t1 <- to -> a2, p2, t2

Also, please read this article. s2Member really does NOT fully support this in reporting/tracking, but it does work at PayPal, and in cases where tracking from s2Member is not critical, you can get away with it:
viewtopic.php?f=4&t=248&p=1085&hilit=does+not+support#p1085
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Customised Subscription Billing

Postby k4yti » August 26th, 2010, 9:24 am

Hi
Thanks for the prompt reply. When I create a customised PayPal button I get
Code: Select all
<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?>:
<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?>

Showing in the description.
I found this topic that covers it: http://www.primothemes.com/forums/viewtopic.php?f=4&t=459&p=1920&hilit=S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0#p1920
Possible solutions:
1. Install the Exec-PHP plugin. - yes done
2. Use the Shortcode format instead. - need customised button
3. Make sure that your Button Code is not getting corrupted by the Visual Editor. - never use the visual editor, I do everything in the HTML

Is it just whilst I am testing with Sandbox enabled I have this problem and it'll resolve on a genuine account or is there an alternative resolution please?

Many thanks
Katie
User avatar
k4yti
Registered User
Registered User
 
Posts: 7
Joined: June 23, 2010

Re: Customised Subscription Billing

Postby Jason Caldwell » August 30th, 2010, 12:49 am

Hi Katie. Thanks for reporting back.

OK. So you have the Exec-PHP plugin installed, and you NEED the Full Button Code.

If those values are still showing up in the description at PayPal®, it's because they're not being evaluated into the values they represent. This would indicate to me that your editor is corrupting the Button Code somehow, or that the Exec-PHP plugin is not working on your installation of WordPress®.

Here are some additional things that I've seen as possible causes:

1. You're using a NON-default editor for WordPress®?
( try using the default WordPress® editor instead, see if that helps )

2. In your WordPress® Settings -> Writing panel, do you have this box checked?
~ WordPress should correct invalidly nested XHTML automatically
( if so, you MUST uncheck that box, it causes conflicts with the Exec-PHP plugin )

3. Are you on a Multisite Network installation? If so, you'll have all sorts of trouble with Exec-PHP due to the additional security restrictions that are enforced by Multisite mode. Placing this file into your /wp-content/mu-plugins/ directory may correct the issue for you.
remove-kses.zip
(601 Bytes) Downloaded 9 times

Which contains this code snippet:
Code: Select all
/*
Remove kses filters.
Attached to: add_action("init");
*/
function ws_plugin__remove_kses ()
   {
      if (current_user_can ("unfiltered_html"))
         kses_remove_filters ();
   }
/*
Add the actions.
*/
add_action ("init", "ws_plugin__remove_kses", 11);
add_action ("import_start", "ws_plugin__remove_kses");


If none of that helps, here are some additional things you could try:

1. Use this plugin to create your own custom Shortcode that will produce your custom Button Code.
http://wordpress.org/extend/plugins/shortcode-exec-php/

2. Place the Button Code directly into your theme, instead of into the WordPress® editor.

~ Please let us know if any of these solutions work for you. ~ Good luck!
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron