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

Open to all! Ask other shopowners for help.
Post Reply
loop
Contributor
Posts: 253
Joined: Thu Mar 25, 2021 12:26 pm
Phoenix Version:
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...


Join The Code Co-op to get access to your library in the Code Co-op Forum
LeeFoster
Contributor
Posts: 263
Joined: Sun Feb 28, 2021 9:41 pm
Phoenix Version: v1.0.8.20
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
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 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
Contributor
Posts: 263
Joined: Sun Feb 28, 2021 9:41 pm
Phoenix Version: v1.0.8.20
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
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 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
Contributor
Posts: 263
Joined: Sun Feb 28, 2021 9:41 pm
Phoenix Version: v1.0.8.20
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.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply