Community Support Forums — WordPress® ( Users Helping Users ) — 2011-04-23T00:04:23-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=6161 2011-04-23T00:04:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6161&p=13210#p13210 <![CDATA[Re: Hook/Filter to change order of Card Type Options?]]>

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


]]>
2011-04-22T23:51:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6161&p=13206#p13206 <![CDATA[Re: Hook/Filter to change order of Card Type Options?]]> Statistics: Posted by toddz88 — April 22nd, 2011, 11:51 pm


]]>
2011-04-22T14:52:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6161&p=13165#p13165 <![CDATA[Re: Hook/Filter to change order of Card Type Options?]]> s2member-pro/includes/classes/gateways/paypal/paypal-form-in.inc.php).

Try the hook "ws_plugin__s2member_pro_before_sc_paypal_form_after_shortcode_atts" (line 69).

Let me know if that helps. :)

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


]]>
2011-04-22T03:11:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6161&p=13137#p13137 <![CDATA[Hook/Filter to change order of Card Type Options?]]>
GOAL: On the s2Member Pro checkout form (template: paypal-checkout-form.html), I need to change the order in which the Billing Methods are displayed (by %%card_type_options%%), making Paypal the last option, rather than the first (since we can't remove it entirely).

Apparently the ShortCode does not actually control the order of display. I was able to use CSS to float it to the right, but that's a bit hacky and the spacing between Paypal and the others isn't perfect.

Then I found the line of code that actually sets the order, in this file:
s2member-pro/includes/classes/gateways/paypal/paypal-form-in.inc.php
So I can edit the array, putting Paypal last. But i also know it's unwise to edit the plugin files like this, as my changes will be lost in future updates. Can this be done with a Hook or Filter instead?

Thanks,
Todd

Statistics: Posted by toddz88 — April 22nd, 2011, 3:11 am


]]>