Author Topic: Payment Method List Order Changes?  (Read 4909 times)

AtomicUK

  • Beginner
  • *
  • Posts: 5
Payment Method List Order Changes?
« on: July 20, 2011, 17:07:12 pm »
Could anyone tell me which file I need to amend to change the order in which Payment options appear in the list below?
Thank you in advance.  :)

[attachment cleanup by admin]

stilogo

  • Beginner
  • *
  • Posts: 2
    • STILOGO
Re: Payment Method List Order Changes?
« Reply #1 on: July 21, 2011, 10:53:07 am »
Hi AtomicUK:

Via FTP you must go to:

components/com_virtuemart/themes/default/templates/checkout/list_payment_methods.tpl.php

You have to modify this URL if your template is not the default one.

Lines 119 to 121 predefine the order:

Code: [Select]
$ps_payment_method->list_nocheck($payment_method_id,  false);
$ps_payment_method->list_bank($payment_method_id,  false);
$ps_payment_method->list_paypalrelated($payment_method_id,  false);[code]

Change the order as you need. For example, if you want Paypal option first:

[code]$ps_payment_method->list_paypalrelated($payment_method_id,  false);
$ps_payment_method->list_nocheck($payment_method_id,  false);
$ps_payment_method->list_bank($payment_method_id,  false);

Regards,

F. J. Villalba

www.stilogo.com

AtomicUK

  • Beginner
  • *
  • Posts: 5
Re: Payment Method List Order Changes?
« Reply #2 on: July 21, 2011, 11:05:00 am »
Hi stilogo
Thank you for your reply.  :)

I had used the search engine and looked through 15 pages of similiar questions to mine and your answer above was the only one that worked for some people, but only to a degree.

I tried this with my list yesterday (changing the file you mention) and it did not change the order for me.  :(

There was talk of another sub group that each option sits within that is numbered, but I could not find out anymore or how to change this 'sub group'

vmbuilder

  • Beginner
  • *
  • Posts: 21
Re: Payment Method List Order Changes?
« Reply #3 on: September 08, 2011, 12:23:04 pm »
Thanks stilogo: Making these changes in list_payment_methods.tpl.php got me going in the right direction.

@AtomicUK - to get it how I wanted I also then had to change the payment method 'list order' in:
VM Administration>Store>List Payment Methods (you can select a list order number in each Payment Method Form)

mowlman's solution helped me to force a default:
http://forum.virtuemart.net/index.php?topic=73315.0

If I decide not to have a default selection in the future I'll try rb's solution:
http://forum.virtuemart.net/index.php?topic=64529.msg216885#msg216885
Joomla 1.5.23 VM 1.1.19

stilogo

  • Beginner
  • *
  • Posts: 2
    • STILOGO
Re: Payment Method List Order Changes?
« Reply #4 on: September 14, 2011, 10:31:55 am »
Hi all:

I am glad you found the full solution. I posted what worked for us -as shown in the screenshot below- just changing the predefined order of the lines. 



Regards,

F. J. Villalba

morktron

  • Jr. Member
  • **
  • Posts: 120
    • digital solutions for sentient bipeds
Re: Payment Method List Order Changes?
« Reply #5 on: November 11, 2011, 03:57:59 am »
Thanks stilogo, this was the solution for me too :)