Did you consider using MIGx and/or MIGXdb for any of this?
http://rtfm.modx.com/display/ADDON/MIGXdb.Tutorials
MIGx is proving to be such an essential addition that the core development team is looking into incorporating its functionality into the core. Personally I can hardly imagine building a site without it.
Wow, MIGx is really cool. I previously thought it was just an image gallery. Thanks Susan for pointing me out to this addon.
zaenal.lokamaya
-
- 712 Posts
Native MIGX (Array TVs) is going to be one of the best updates since 2.2. It will make so many things more manageable, and also I'm hoping will land just in time for HTML <picture>. To support multiple media resolutions, multiple assets will be needed, so Array TVs are perfect for something like that.
My general rule of thumb is if a set of data doesn't need it's own URL, it should MIGX within the page it's on
jpdevries
With MIGXdb handling resources hidden in the resource tree, even groups of resources can be handled advantageously. Just consider the tutorials in the rtfm, of a simple gallery, an event calendar, and as a CMP all by itself.
I've tried the tutorials of MIGx. It's really cool. I can create custom db for storing customer order on the fly.
But on handling child resource, I would prefer to have something similar to modBlog (Articles) that use 'ordinary' page when creating/updating child resources. But MIGx give me an idea how to manage child resources with the help of a hidden tv or a specific template.
zaenal.lokamaya
Combine a MIGXdb CMP with a custom link for QuickBar and you would have a very nice editing system. I haven't tried it yet (coward!) but I suspect a little clever handling of the user management system and you could have access limited to the Manager so that just the CMP was visible to the user coming in via the QuickBar link.
http://modx.com/extras/package/quickbar
So, who will initiate this project? I really need it so bad. I've developed some OsCommerce site in the past and contribute some excellent addon to the community, but now I give up with OsC.
zaenal.lokamaya
I have it half-done, unfortunately I've been swamped with other work (well, it doesn't take much to swamp me) and haven't been able to get into it. I know it will be quite simple; the JQuery cart works on elements with specific classnames so it's just a matter of generating the output of the MIGx or getResources or whatever method you choose to handle the items to have what the cart wants. It's all in the tpl, just like for any other JQuery plugin for galleries or whatever. Divs, lists, tables, SimpleCart doesn't really care, it works with classnames.
The hardest part is deciding whether to use MIGx or resources or MIGXdb-managed resources to organize the products.