0

I'm developing a site that will sell automotive parts. We have a database with the parts (mapped to simple products) and their relationships with part groups (mapped to the grouped product in Magento). Each part can be mapped to multiple part groups as it can be used for many engines but we also have some additional properties that are bound to this relationship that somehow we need to map.

  • Quantity per part-group (this is already handled in Magento as default qty).
  • Number or code in the drawing/picture
  • Coordinates in the drawing/picture (to make a JS module that highlights it on hover)
  • Installer notes

So basically, all this information belongs to the grouped products, or even better to the grouped product - a simple product relationship.

Ideas that I've thought:

  • Extend the relationship to include this extra parameter (I've got no idea how to start with it and if there are any consequences)
  • Add the extra attributes and bind the information in JSON or any custom format and include it on the template (it works but the first option seems cleaner).

Note: all articles, guides, tutorials show how to include additional parameters that the simple product has, but in this situation, the simple product has different parameters depending on which grouped product it belongs to. So none of these solutions are valid, for example in GP-1 it can be in image 10 and require 3 units and on GP-2 it can be on image 4 and require 3 units.

Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.