Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,475
    Plugin Contributions
    88

    Default [Done v1.5.5] Payment Methods: Sort Orders 0 and less not honored

    I've got a store that has three payment methods:
    1. Direct Bank Deposit, sort order 50, no zone restrictions
    2. Check/Money Order, sort order 80, zone restriction, disabled
    3. PayPal Express Checkout, sort order 0, no zone restrictions

    When the payment methods are displayed on the checkout_payment page, Direct Bank Deposit is listed before PPEC. If I change the sort order for PPEC to 1, then it properly displays first. If the sort-order for PPEC is 0 or negative, it is improperly shown after the Direct Bank Deposit method.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Payment Methods: Sort Orders 0 and less not honored

    When you use a Sort Order greater than 0 on any of the Payment Modules you need a Sort Order on ALL of the Payment Modules that are greater than 0 ... see if that gets them lined up right ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,475
    Plugin Contributions
    88

    Default Re: Payment Methods: Sort Orders 0 and less not honored

    Ajeh, if I set the sort-order for PPEC to 1 then it properly sorts as the first payment module in the list.

    Are you saying that the special handling of a payment module's sort-order, when set to 0, is WAD (working as designed)?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Payment Methods: Sort Orders 0 and less not honored

    Because an array is built, if you do not have a Sort Order on 1 Payment Module when 1 or more does have a Sort Order > 0 then what happens will be:

    1 Display orders can be goobered up

    2 One Module could overwrite another module as it will be replaced in the Array


    So the rule is, when using any of the Modules:
    Payment
    Shipping
    Order Totals

    if 1+ module(s) is given a Sort Order > 0 then ALL need to have their own Sort Order > 0 and it must be unique ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,586
    Plugin Contributions
    30

    Default Re: Payment Methods: Sort Orders 0 and less not honored

    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,475
    Plugin Contributions
    88

    Default Re: Payment Methods: Sort Orders 0 and less not honored

    @Ajeh, it seems like the processing in each of the admin-level Modules should do a little detective work and, at a minimum, display a warning to the admin user if "the rule" is violated.

    @torvista: You did, but I apparently said it better!

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Payment Methods: Sort Orders 0 and less not honored

    There actually is a warning on at least v154, I did not test all versions, but it only shows when there is an obvious conflict on the modules ...

    We will try to look into it further to see if that can be changed to if 1 module has a Sort Order but the others do not the warning will still show ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Payment Methods: Sort Orders 0 and less not honored

    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 18 Nov 2010, 11:53 PM
  2. Replies: 8
    Last Post: 6 Apr 2009, 11:00 PM
  3. Replies: 3
    Last Post: 23 Mar 2009, 03:56 PM
  4. Replies: 9
    Last Post: 16 Aug 2007, 04:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR