Page 1 of 1

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

PostPosted: November 20th, 2010, 12:24 am
by toddz88
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

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

PostPosted: November 20th, 2010, 11:48 am
by startasocialnetwork
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

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

PostPosted: November 24th, 2010, 1:01 am
by toddz88
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.

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

PostPosted: December 1st, 2010, 1:00 pm
by madsem
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