I know this has been asked before but has anybody actually attempted to write a Dynamic Attributes Mod?
So if Product A is selected from Attribute 1 only attributes associated with Product A show up.
I know this has been asked before but has anybody actually attempted to write a Dynamic Attributes Mod?
So if Product A is selected from Attribute 1 only attributes associated with Product A show up.
Nick Smith - Venture Design and Print
https://venturedesignandprint.co.uk
I have not seen any such mod contributed
Zen-Venom Get Bitten
If it was straightforward to do, someone would already have done it. There are so many ways a user could want attributes to be dependent that no one mod could cover a fraction of them without becoming bloated. Writing a mod for one particular scenario would probably be easy enough for someone skilled in javascript and PHP.
Just to echo gjh42's comments... I have seen ZC sites that have constructed dependent attributes modules, but these are always bespoke and serve only the needs of the site in question. So it is possible - but as Glenn says, each user has unique needs so it is not possible to build a "one-size-fits-all" solution.
20 years a Zencart User
I'm looking to do the same thing. I wonder if there would have to be entirely new code created for this mod, or if we can figure out which files would be required from the existing zen cart files then tweak those for our needs. I have a store where people can submit measurements in inches or centimeters. I would like the dependent attributes to change based on that selection.
I think you would mostly just tweak the existing PHP files. The majority of the work would probably be in new javascript code to handle real-time display changes.
Came across this thread while reviewing some other things. Currently Stock By Attributes (unfortunately not yet posted as an updated download for at least 2 reasons but is available from github) now supports this type of construction of showing just the attributes related to the first selection as applicable for the second. It doesn't change the type of attribute that can be selected but it does adjust the values of the existing option values within the subsequent dropdowns. So, yes has a little bit of a limit, but does at least broach this topic/option.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...