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,
ToddStatistics: Posted by toddz88 — April 22nd, 2011, 3:11 am
]]>