Author Topic: [SOLVED] Cash payment method List Order doesn't work  (Read 5259 times)

aravot

  • Peter
  • Moderator
  • Sr. Member
  • *
  • Posts: 2874
    • VirtueMart Extensions
[SOLVED] Cash payment method List Order doesn't work
« on: October 22, 2010, 20:19:18 pm »
Cash payment method 'List Order' doesn't work, no matter what number is used it still shows as the first payment option


zanardi

  • Contributing Developer
  • Full Member
  • *
  • Posts: 878
    • GiBiLogic
Re: Cash payment method List Order doesn't work
« Reply #1 on: October 24, 2010, 13:31:46 pm »
Thank you again for this report and for your accurate testing.

When displaying payment methods, VM cycles through different types in different times:

$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);

This means that "List order" only applies between payment methods of the same type, not between every payment method; as you can see in the code, methods that are of the "Address only / Cash on Delivery" type will always be shown first.

I agree this could be better, but i consider it more a "feature" than a "bug", so i don't think this will be fixed in 1.1.x series.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter