Skip to content

patrickmcelwee/spree_product_sort

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spree Product Sort

Simple - and shamefully untested - extension to sort products within taxons and also on a global index.

It works by creating a new DB join table between products and taxons to store the product positions for each taxon, and adding an admin view that lets you drag-and-drop them into place.

This extension includes an assumption that you will want a global index (i.e. a /products page that lists all products) that is sorted independently from each taxon. The solution for this seems a little hacky: It does it by creating a fictitious taxon to which all existing and new products are added. Suggestions for improvement are welcome.

Based on: https://github.com/jdevine/spree-ordering-in-taxons

About

Changed product-taxon relationship to has many through to allow for ordering within a taxon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%