[checkout] customize display order of payment options?
|
badjeros
Joined: 2005-10-16
Posts: 18 |
Posted: Wed, 2009-05-06 02:42
|
|
I have the checkout module activated, and additionally the checkout by email and checkout by paypal modules. I'll be using checkout by email as a back-up for the few instances where customers don't want to use credit card or paypal, but that's not a common situation, and I want it to be clear that checkout by paypal is meant to be the primary payment method. But on the Checkout Step 2 - Confirm your selection screen, the checkout by email option is listed first. Is there a way to change the order, so that checkout by paypal appears first? I've tried installing the modules in a different sequence, but they stayed the same order on the page. I've also been looking at the modules/checkoutemail/templates/confirm.tpl file to see if I could change the order there, and if it can be done it's not obvious to me how to do it. But I'm not so hot with code. Does anyone have an idea for how to make that change? |
|
| Login or register to post comments |

Posts: 3865
For a quick hack, you could probably reverse the order with this method, I think:
http://gallery.menalto.com/node/73111
Posts: 18
That worked!
{foreach from=$tpl.payments item=payment} {include file="gallery:`$payment.paymentTemplate`"} <tr><td> </td><td> </td></tr> {/foreach}became
{foreach from=$tpl.payments|@array_reverse item=payment} {include file="gallery:`$payment.paymentTemplate`"} <tr><td> </td><td> </td></tr> {/foreach}Thanks very much.