Community Support Forums — WordPress® ( Users Helping Users ) — 2011-04-23T00:03:59-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=1252 2011-04-23T00:03:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1252&p=13209#p13209 <![CDATA[Re: Visa as default Billing Method, not Paypal ?]]>

Statistics: Posted by Cristián Lávaque — April 23rd, 2011, 12:03 am


]]>
2011-04-22T23:52:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1252&p=13207#p13207 <![CDATA[Re: Visa as default Billing Method, not Paypal ?]]> Very cool, and much appreciated.

Statistics: Posted by toddz88 — April 22nd, 2011, 11:52 pm


]]>
2011-04-22T12:38:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1252&p=13150#p13150 <![CDATA[Re: Visa as default Billing Method, not Paypal ?]]>

I changed your rank to "Experienced User".

Statistics: Posted by Cristián Lávaque — April 22nd, 2011, 12:38 pm


]]>
2011-04-22T04:43:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1252&p=13141#p13141 <![CDATA[Re: Visa as default Billing Method, not Paypal ?]]>
In the s2mPro form template file "paypal-checkout-form.html", i added a new css class "creditcard-field" to all the credit-card related divs that i want displayed by default, but were otherwise hidden by an inline style=display:none (which i couldn't figure out where it was coming from). Then i have jquery (in header.php) to target these new .creditcard-field elements, and change the attribute of "style" to "display:block".


in paypal-checkout-form.html, "creditcard-field" is added to the class list"
Code:
<div id="s2member-pro-paypal-checkout-form-card-number-div" class="s2member-pro-paypal-form-div s2member-pro-paypal-checkout-form-div s2member-pro-paypal-form-card-number-div s2member-pro-paypal-checkout-form-card-number-div creditcard-field">


in header.php (assuming jquery is already enabled):
Code:
<script type="text/javascript">
      jQuery(document).ready(function() {
         jQuery('.creditcard-field').attr('style','display:block');
      });
</script>

Statistics: Posted by toddz88 — April 22nd, 2011, 4:43 am


]]>
2010-11-24T00:54:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=1252&p=4860#p4860 <![CDATA[Visa as default Billing Method, not Paypal ?]]>
We need the credit-card related fields (card number, expiration, verif code, and billing address) to be displayed (rather than hidden) when the page loads, since the vast majority of our customers will use credit cards rather than Paypal, and they'll expect to see those fields.

It looks like those fields get an inline style='display:none' that is not present in the template source markup, but i can't seem to figure out where it's coming from. I can't seem to use css to override the inline style, unless I use !important, but then it would fail to be hidden when the Paypal option is selected.

Thanks!
Todd

Statistics: Posted by toddz88 — November 24th, 2010, 12:54 am


]]>