VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: aravot on October 22, 2010, 20:19:18 PM

Title: [SOLVED] Cash payment method List Order doesn't work
Post by: aravot 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

(http://www.protechsystems.us/stuff/joomla/vm/vm-cash_payment_method.png)
Title: Re: Cash payment method List Order doesn't work
Post by: zanardi 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.
Title: Re: Cash payment method List Order doesn't work
Post by: aravot on October 24, 2010, 20:01:48 PM
I see thank you for the explanation.