Closed (won't fix)
Project:
DraggableViews
Version:
6.x-3.3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
31 Jan 2010 at 18:04 UTC
Updated:
17 Oct 2017 at 20:46 UTC
Jump to comment: Most recent
Since there is the great uc_views module out there, I thought it would be fun to add Draggable support to the Ubercart Weight field for products, AKA "List Postion".
I've attached my module code. Requires uc_views
I couldn't think of a good reason to enable the "Parent" function, but I also don't know that I could disable it, either. I suppose we could add an error message?
| Comment | File | Size | Author |
|---|---|---|---|
| draggableviews_ubercart.tgz | 1.22 KB | liberatr |
Comments
Comment #1
sevi commentedI think documentation would be enough.
Thanks. Would you like to create a new project or do you want me to add this handler to the DraggableViews Family :)
Comment #2
EDDYL commentedI installed both views and draggableviews_ubercart but I haven't figured how to configure it properly.
Could you make a small tutorial on how to build a view that would allow us to draft products easily. (or add such code directly in the module so that people just have to adapt it to their needs.)
Regards,
Edouard
Comment #3
liberatr1. Install draggableviews_ubercart
2. Make sure you assign the "Allow Reordering" permission to any user roles who will be able to reorder products
3. Create a new View
4. Assign filters - "Node: Is a product (True)"
5. Assign Sort criteria - "Product: List position (asc)"
6. Add Fields - "Title"
7. Add Fields - "Product: List postion" (list position may not be the first field in the list)
8. Add any other desired fields. "Product: Sell Price" and "Content: Image" are recommended
9. Set display Style to "Draggable Table"
10. Under Settings for Draggable Table > Page: Style options: Draggable Table Settings, Set the Order Field - Field: List Position - Handler: Ubercart
11. Create a Page display
12. Provide a path for the Page - example: admin/store/products/ordering
13. Set Access restrictions for the Page - Permission: edit all products (or by role if desired)
14. You may also wish to edit Items per page, or add an exposed filter for Taxonomy Term: Catalog (dropdown), Node: Published filter, or other fields
Comment #4
liberatrYou can use the "Import" feature of Views to create a new view using this code:
Comment #5
liberatrSevi, I guess you never did add this to the DraggableViews family, but that was certainly my intention behind uploading the code.
I think there are enough similar features behind most Ubercart sites that it might make sense to include that default view code as well... it could be disabled by default, with a line in the readme to tell people to turn it on.
Comment #6
stefan81 commentedsubscribe
Comment #7
summit commentedSubscribing, greetings, Martijn
Comment #8
mattcasey commentedWow, awesome thanks for this! It should definitely be part of Ubercart/Draggable Views
Comment #9
zach harkey commentedI can't believe how well this works. Definitely include this functionality and the uc_products_ordering view with the core module.
Comment #10
Adriano72 commentedHuge Thanks! It works like a charm!!
Ciao
Adriano
Comment #11
jasonabc commentedJust a note to anyone who can't get this to work (as I initially could not) - if you upgrade to latest versions of uc_views, Ubercart and Views this will work great (I had slightly outdated versions of all 3 and the page where the order can be changed was breaking). Thanks to the authors for this really great and much needed feature.
Comment #12
sumit.ggn commentedHi Guys,
I did what all is suggested here and this works very well until we have a big number of records to be sorted for a product category.
I have a category where it has more than 250 products. Initially, there was a paging on this view which I removed so that I have all the products on a single page. But when I save the ordering form, I see it saves the order from 0-127 and after that all the records keep the order value as 127 only.
Can someone throw a light on this issue? or ask if you need any more details.
Thanks
Sumit
Comment #13
istryker commentedDrupal 6.x is no longer supported. Closing issue.