Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: Keep multiselectbox Selection Order  (Read 2226 times)

Offline natdroid

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +30/-2
    • View Profile
    • Contact
Keep multiselectbox Selection Order
« on: February 16, 2016, 02:13:22 AM »
I want to be able to track user selected order chosen setting in my new extension. if a user select option2 first then option1, I want to get the result in the order of option2 and option1. But chosen sorts user selected options. Is there a way I can tell chosen to not sorting the result?

Offline natdroid

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +30/-2
    • View Profile
    • Contact
Re: Keep multiselectbox Selection Order
« Reply #1 on: February 17, 2016, 04:30:24 AM »
Please help!

Offline eCommerce Core

  • Administrator
  • Hero Member
  • *****
  • Posts: 1600
  • Karma: +93/-1
    • View Profile
Re: Keep multiselectbox Selection Order
« Reply #2 on: February 18, 2016, 06:17:48 AM »
I think data is sorted prior to getting into chosen. Check what is provided as a data array into chosen. Possibly it is in the response Jason array.
“If you’re in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent.”
― Warren Buffett

 

Powered by SMFPacks Social Login Mod