jmauclair Posted May 7, 2021 Share Posted May 7, 2021 Hi guys, I've got an issue. I'm working on a way to generate subproducts linked to a main product and this from the subcategories of the main product. I'd need that my subproduct got the quantities linked with the first product, but I don't know how to : - First of all, have a product with an ID with the quantities linked to another product with an other ID - Then, how can I generate them easily, with a PHP script for example or any other way, to generate my subproducts with the name of the subcategories linked to. To be more concrete, I'm having a automobile parts shop, and we are creating a way to filter for every vehicles the parts that's fit. We just create categories like that : Car Makes -> 'Make' -> 'Model' -> 'Motor' I want to generate sub product from a main product like for example : Main product : exhaust PIPETEK D26mm (in category exhaust) Sub product (if subcategories is Car Makes -> Chrysler -> Voyage -> 4.2L HDI) : exhaust PIPETEK D26mm for Chrysler Voyager - 4.2L HDI And the quantity of the sub product would be linked between main product (if one decrease the other too and reverse) Let me know guys ifd you need more info ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now