landofcoder/module-seller-coupon-graph-ql
最新稳定版本:1.0.2
Composer 安装命令:
composer require landofcoder/module-seller-coupon-graph-ql
包简介
Coupon code generation for Seller Items
README 文档
README
``landofcoder/module-seller-coupon-graph-ql``
Main Functionalities
- Seller Coupon
- The module allow Seller create sales rule, generate coupon code for customer via email
- Customer will purchase seller's products and apply his coupon code to get discount price.
Installation
* = in production please use the --keep-generated option
Type 1: Zip file
- Unzip the zip file in
app/code/Lofmp - Enable the module by running
php bin/magento module:enable Lofmp_CouponCodeGraphQl - Apply database updates by running
php bin/magento setup:upgrade* - Flush the cache by running
php bin/magento cache:flush
Type 2: Composer
- 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 landofcoder/module-seller-coupon-graph-ql - enable the module by running
php bin/magento module:enable Lofmp_CouponCodeGraphQl - apply database updates by running
php bin/magento setup:upgrade* - Flush the cache by running
php bin/magento cache:flush
Queries
- My Coupon Codes
{
myCouponCode (
type: "all
filters: {}
pageSize: 10
currentPage: 1
) {
total_count
items {
coupon_id
name
alias
code
from_date
to_date
uses_per_customer
discount_amount
type
times_used
created_at
expiration_date
coupon_rule {
rule_id
rule_name
discount_amount
}
seller_id
seller {
seller_id
shop_title
thumbnail
url
}
}
}
}
- Get seller public coupon codes
{
sellerCoupons (
sellerUrl: String!
filters: {}
pageSize: 5
currentPage: 1
) {
total_count
items {
coupon_id
name
alias
code
from_date
to_date
uses_per_customer
discount_amount
type
times_used
created_at
expiration_date
coupon_rule {
rule_id
rule_name
discount_amount
}
seller_id
seller {
seller_id
shop_title
thumbnail
url
}
}
}
}
- Get public coupon codes
{
publicCouponCode (
type: String
filters: {}
pageSize: 5
currentPage: 1
) {
total_count
items {
coupon_id
name
alias
code
from_date
to_date
uses_per_customer
discount_amount
type
times_used
created_at
expiration_date
coupon_rule {
rule_id
rule_name
discount_amount
}
seller_id
seller {
seller_id
shop_title
thumbnail
url
}
}
}
}
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2022-08-19