Idea for adding dynamic "services" to products like Options / attributes

Ask the community for help and support.
Post Reply
loop
VIP Member
VIP Member
Posts: 230
Joined: Thu Mar 25, 2021 12:26 pm
Has thanked: 7 times
Been thanked: 3 times

Idea for adding dynamic "services" to products like Options / attributes

Post 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...
LeeFoster
VIP Member
VIP Member
Posts: 228
Joined: Sun Feb 28, 2021 9:41 pm
Has thanked: 1 time
Been thanked: 5 times

Re: Idea for adding dynamic "services" to products like Options / attributes

Post 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.
User avatar
Kofod95
VIP Member
VIP Member
Posts: 605
Joined: Sat Feb 06, 2021 7:38 pm
Has thanked: 80 times
Been thanked: 141 times

Re: Idea for adding dynamic "services" to products like Options / attributes

Post 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
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
LeeFoster
VIP Member
VIP Member
Posts: 228
Joined: Sun Feb 28, 2021 9:41 pm
Has thanked: 1 time
Been thanked: 5 times

Re: Idea for adding dynamic "services" to products like Options / attributes

Post 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.
User avatar
Kofod95
VIP Member
VIP Member
Posts: 605
Joined: Sat Feb 06, 2021 7:38 pm
Has thanked: 80 times
Been thanked: 141 times

Re: Idea for adding dynamic "services" to products like Options / attributes

Post 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
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
LeeFoster
VIP Member
VIP Member
Posts: 228
Joined: Sun Feb 28, 2021 9:41 pm
Has thanked: 1 time
Been thanked: 5 times

Re: Idea for adding dynamic "services" to products like Options / attributes

Post 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.
Post Reply