Hi,
Would love some advice on how to set up a notification workflow. Don't think the stock notification plugin will work - although I might be wrong. Here is my situation:
I have products that list online stores that the product is available. If their are no stores for a product. a user sees the message "No stores are available. click here to be notified" and the user is added to the "queue table" below. We've built that part. It's the notification we need to build. We need to notify users on the "Queue" table (this holds the users waiting to be notified) via email when one of the products they have signed up is added to the the "productStores" table.
I have a product table, a store table, a user table, list of stores carrying product and a "Queue" table
product
id, productName
1, table
2, chair
3, towel
store
id, storeName
1, target
2, walmart
3, Joes
user
id, name
1, hugh
2, scott
3, jim
productStores
product__id, store__id
1,3
1,2
2,2
queue
product__id, user__id
3,2
3,3
(so scott and jim are waiting for any store to carry a towel and wants to be emailed when any store comes online)
so if the state of the productStores became
1,3
1,2
2,2
3,1
scott, and jim would get emails...
I'm just hoping that someone will point us in the right direction...
Thanks
rg
Would love some advice on how to set up a notification workflow. Don't think the stock notification plugin will work - although I might be wrong. Here is my situation:
I have products that list online stores that the product is available. If their are no stores for a product. a user sees the message "No stores are available. click here to be notified" and the user is added to the "queue table" below. We've built that part. It's the notification we need to build. We need to notify users on the "Queue" table (this holds the users waiting to be notified) via email when one of the products they have signed up is added to the the "productStores" table.
I have a product table, a store table, a user table, list of stores carrying product and a "Queue" table
product
id, productName
1, table
2, chair
3, towel
store
id, storeName
1, target
2, walmart
3, Joes
user
id, name
1, hugh
2, scott
3, jim
productStores
product__id, store__id
1,3
1,2
2,2
queue
product__id, user__id
3,2
3,3
(so scott and jim are waiting for any store to carry a towel and wants to be emailed when any store comes online)
so if the state of the productStores became
1,3
1,2
2,2
3,1
scott, and jim would get emails...
I'm just hoping that someone will point us in the right direction...
Thanks
rg