Page 1 of 1
Idea for adding dynamic "services" to products like Options / attributes
Posted: Sun Apr 24, 2022 3:09 pm
by loop
Hi All
I'm Trying to manage dynamic options (so i don't have to add manualy options in admin). So for example:
i want the service "installation at home" for lets say 139$ on specific categories without putting every product in the products_attributes table in mysql (the admin part i can manage easy myself, so to show on the products i like the dropdown box with options to choose is not the problem). I'm wondering what would be the best approach that the attribute logik to add it to the cart still works (without having the products_id in the mysql table products_attributes)
would be great if somebody can point me to the right direction...
Re: Idea for adding dynamic "services" to products like Options / attributes
Posted: Sun Apr 24, 2022 3:41 pm
by LeeFoster
I don't know where to begin with coding it but you essentially want a 'Product Type' that you can then add default attributes to that type.
So in your example you would have a product type of 'Installable' that then gets the default service attribute of 'installation at home'.
I need something similar for customisable products that should have a text field added based on a product type. Let me know if you find someone to code it for you.
Re: Idea for adding dynamic "services" to products like Options / attributes
Posted: Sun Apr 24, 2022 5:19 pm
by Kofod95
I have something that could handle the 'product type' part - Two of the shops I help use it for shipping. If that could be helpful, I'll do my best to get it ready soon.
For the second part, maybe an ot_module and a checkout_shipping hook, similar to giftwrapping, but based on the 'product type'?
You could maybe do something similar @LeeFoster
//Daniel
Re: Idea for adding dynamic "services" to products like Options / attributes
Posted: Sun Apr 24, 2022 5:40 pm
by LeeFoster
Kofod95 wrote: ↑Sun Apr 24, 2022 5:19 pm
For the second part, maybe an ot_module and a checkout_shipping hook, similar to giftwrapping, but based on the 'product type'?
You could maybe do something similar @LeeFoster
//Daniel
I need my customers to be able to enter it on the product page as there could be multiple customisable products.
Re: Idea for adding dynamic "services" to products like Options / attributes
Posted: Sun Apr 24, 2022 6:22 pm
by Kofod95
LeeFoster wrote: ↑Sun Apr 24, 2022 5:40 pm
there could be multiple customisable products.
Makes sense - probably most elegant to do it there then.
Even though 'per item' gift wrap could be used as a starting point, it would easily become messy to look at and administer.
//Daniel
Re: Idea for adding dynamic "services" to products like Options / attributes
Posted: Sun Apr 24, 2022 7:10 pm
by LeeFoster
Kofod95 wrote: ↑Sun Apr 24, 2022 6:22 pm
Makes sense - probably most elegant to do it there then.
Even though 'per item' gift wrap could be used as a starting point, it would easily become messy to look at and administer.
//Daniel
Not sure where to start with coding it though.