Russian  English  All projects

Custom sorting for modx - Minishop2 store plugin



- It is necessary to make functionality for manual sorting of goods in categories and multicategories. This functionality is used in the construct of https://www.ecwid.com/ stores (screenshot attached)
- There is already a ready-made plugin that describes this functionality https://modstore.pro/packages/ecommerce/mssortfiel... but it is not suitable because it extends the main table of goods ms2_products . That is, an additional column is added to each new category, and more than 1000 categories are planned.

Solution Options
1. Simple
create a Migx table for each product category in which to update the number of products in that category, and move the indexes of this table to the resources parameter while leaving the sortby and sortdir parameters blank
2. Complex
A complete sorting addition.
Create sort class, create tables with relationships (product - category - sorting index)
Display the sort management interface via a separate tab in each category (as it is done in ecwid screenshot attached)
18.01.2023 15:41



 Answers freelancers