``landofcoder/module-productnotification-graph-ql``
Magento 2 product notify in stock, sales price to subscriber Graph QL
* = in production please use the --keep-generated
option
- Unzip the zip file in
app/code/Lof
- Enable the module by running
php bin/magento module:enable Lof_ProductNotificationGraphQl
- Apply database updates by running
php bin/magento setup:upgrade
* - Flush the cache by running
php bin/magento cache:flush
- Make the module available in a composer repository for example:
- private repository
repo.magento.com
- public repository
packagist.org
- public github repository as vcs
- private repository
- Add the composer repository to the configuration by running
composer config repositories.repo.magento.com composer https://repo.magento.com/
- Install the module composer by running
composer require lof/module-productnotificationgraphql
- enable the module by running
php bin/magento module:enable Lof_ProductNotificationGraphQl
- apply database updates by running
php bin/magento setup:upgrade
* - Flush the cache by running
php bin/magento cache:flush
-
enable (productnotification/general_settings/enable)
-
email_identity (productnotification/productalert/email_identity)
-
allow_price (productnotification/productalert/allow_price)
-
disable_price_guest (productnotification/productalert/disable_price_guest)
-
allow_stock (productnotification/productalert/allow_stock)
-
disable_stock_guest (productnotification/productalert/disable_stock_guest)
-
allow_new_product (productnotification/productalert/allow_new_product)
-
cat_ids (productnotification/productalert/cat_ids)
-
GraphQl Endpoint
- SubscribeProductSalePrice
-
GraphQl Endpoint
- SubscribeProductStock
-
GraphQl Endpoint
- UnSubscribeProductSalePrice
-
GraphQl Endpoint
- UnSubscribeProductStock
-
GraphQl Endpoint
- MySubscribeProductSalePrice
-
GraphQl Endpoint
- MySubscribeProductStock
- landofcoder/module-product-notification
- Subscribe Price Drops Notification
mutation {
subscribeProductSalePrice(
product_id: 15
product_sku: "24-MB06"
price:45.00
subscriber_name: "roni_cost"
subscriber_email: "roni_cost@example.com"
message: "Please let me know when it have sale price"
)
}
- Subscribe Out of stock - Product back stock Notification
mutation {
subscribeProductStock(
product_id: 15
product_sku: "24-MB06"
subscriber_name: "roni_cost"
subscriber_email: "roni_cost@example.com"
message: "Please let me know when it have back to stock"
)
}
- Show List product price drop subscription of logged in customer
{
mySubscribeProductSalePrice(
filters: {}
sort: {
alert_price_id: ASC
}
){
total_count
items{
alert_price_id
subscriber_name
subscriber_email
customer_id
send_count
price
product_id
token
message
product_sku
website_id
store_id
}
}
}
- Show List out of stock subscription of logged in customer
{
mySubscribeProductStock(
filters: {}
sort: {
alert_stock_id: ASC
}
){
total_count
items{
alert_stock_id
subscriber_name
subscriber_email
customer_id
send_count
price
product_id
token
message
product_sku
website_id
store_id
}
}
}
- Un Subscription Price Drop by id
mutation{
unSubscribeProductSalePrice(
id:2,
token:"7umjb382d04n8d3ayiargm6cqzqb08"
email:"roni_cost@example.com"
)
}
- Un Subscription Out of stock by id
mutation{
unSubscribeProductStock(
id:2,
token:"7umjb382d04n8d3ayiargm6cqzqb08"
email:"roni_cost@example.com"
)
}
- Un Subscription Price Drop all by website_id
mutation{
unSubscribeProductSalePrice(
id:2,
token:"7umjb382d04n8d3ayiargm6cqzqb08"
email:"roni_cost@example.com"
website_id: 1
)
}
- Un Subscription Price Drop all by website_id
mutation{
unSubscribeProductStock(
id:2,
token:"7umjb382d04n8d3ayiargm6cqzqb08"
email:"roni_cost@example.com"
website_id: 1
)
}
If this project help you reduce time to develop, you can give me a cup of coffee :)