norn, perhaps I wasn't too clear -- I've been known to do that.
The ajax call wouldn't be some simple javascript trickery, it would literally be a "real" ajax call: make an XMLHttpRequest to a view, it hits the db, returns a newly sorted list of products and displays them on the page by swapping out the current list via javascript. (Not just a JS-based sort library, in which you are sorting elements that are already in the page -- in that case you'd be correct). However, the issue of sorting 4000 products, well that'd still be an issue... :) On Tue, Oct 6, 2009 at 4:25 AM, norn <[email protected]> wrote: > > Your "ajax sort" solution will not use all products, only displayed. > What if you have to sort over 4k products? > > On Oct 5, 9:49 pm, Ryan Headley <[email protected]> wrote: > > Perhaps it'd be over-engineering things a bit, but I would try -- again > > "try" -- to write a custom view called via ajax to do the sorting. I > would > > think its possible. Over the weekend I was thinking that the ajax route > may > > not be a bad way of adding more custom functionality to satchmo without > > touching the satchmo core... > > > > Dunno, still tossing it around in my head, but I think it has potential. > > > > > > > > On Sun, Oct 4, 2009 at 8:13 AM, norn <[email protected]> wrote: > > > > > I have the same problem but I need this type of sort not in the admin > > > only. The only solution I have is to expand Product model by adding > > > price field and then override save methond on Price model to duplicate > > > its value to Product.price. > > > > > Maybe it is not the most elegant solution, but it should work. > > > > > On Oct 2, 8:02 am, m1chael <[email protected]> wrote: > > > > No one ever desired this feature? > > > > > > On Thu, Oct 1, 2009 at 1:40 PM, Bruce Kroeze <[email protected]> > wrote: > > > > > > > On Thu, Oct 1, 2009 at 10:39 AM, Ryan Headley < > [email protected]> > > > wrote: > > > > >> agreed... > > > > >> so at this point, i believe the OP's best bet would be to override > > > admin.py > > > > >> and add some javascript library to allow for sorting... > > > > > > > Right, but it will only work for products on that page, not all > > > products. > > > > > > > -- > > > > > Bruce Kroeze > > > > >http://www.ecomsmith.com > > > > > It's time to hammer your site into shape. > > > > -- > http://www.sudovi.com/http://www.twitter.com/lifewithryanhttp://www.thecommontongue.comhttp://www.lifewithryan.com/ > > > -- http://www.sudovi.com/ http://www.twitter.com/lifewithryan http://www.thecommontongue.com http://www.lifewithryan.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~----------~----~----~----~------~----~------~--~---
