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™

Remove/Hide credit cards i don't want to accept (s2mPro)

s2Member Plugin. A Membership plugin for WordPress®.

Remove/Hide credit cards i don't want to accept (s2mPro)

Postby toddz88 » November 20th, 2010, 12:24 am

In s2member-PRO, how can I completely remove/hide the Credit Card options (radio buttons and images) that I do not want to accept?

I already removed them from the ShortCode, but all that did was disable the radio buttons, but they (and the credit card images) are still visible.. just faded (the usual presentation of a disabled element). The documentation implies that they should not appear at all.


Thanks!
Todd
User avatar
toddz88
Experienced User
Experienced User
 
Posts: 61
Joined: November 19, 2010

Re: Remove/Hide credit cards i don't want to accept (s2mPro)

Postby startasocialnetwork » November 20th, 2010, 11:48 am

Hi Todd,

I had the same problem, and as a hack changed the fade level from 0.2 to 0 in the css for s2member. The cards no longer show.

label.s2member-pro-paypal-form-card-type-label.disabled {
opacity:0.0;
}

I lost the change when I updated s2member, and am not sue how to overide it as a child theme...

Jason: Any tips on overriding the plugin's css permanently?

Ric
User avatar
startasocialnetwork
Registered User
Registered User
 
Posts: 23
Joined: October 8, 2010
Location: Vancouver, BC

Re: Remove/Hide credit cards i don't want to accept (s2mPro)

Postby toddz88 » November 24th, 2010, 1:01 am

Hi Ric, Good idea. I actually used display:none to totally hide the credit cards i don't want to accept.

Permanent override of s2m css:
I found in the documentation that you can prevent s2m from loading its css, by adding this to your theme's functions.php:
Code: Select all
remove_action ("ws_plugin__s2member_during_css", "ws_plugin__s2member_pro_css");

I then copied that css file, and created my own version in my theme's css folder, so i can use the s2m css as a base, but then customize, and it won't be lost if s2m is updated.

The only issue i had is that the s2m css has some php in it for the paths to images, which i couldn't quite understand how it was working, so i just removed it and used a hard path.
User avatar
toddz88
Experienced User
Experienced User
 
Posts: 61
Joined: November 19, 2010

Re: Remove/Hide credit cards i don't want to accept (s2mPro)

Postby madsem » December 1st, 2010, 1:00 pm

And here you can just make a copy of the s2memberpro/includes/templates/ folder...and put the html files in your theme folder, change the html to whatever you like, s2member will automatically use these files
User avatar
madsem
Registered User
Registered User
 
Posts: 26
Joined: October 26, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 0 guests

cron