dadolun95/magento2-newsletter-coupon
Composer 安装命令:
composer require dadolun95/magento2-newsletter-coupon
包简介
Magento2 Newsletter Coupon Generator
README 文档
README
ATTENTION!
This module is no longer maintained. NewsletterCoupon is now available as a Mage-OS module and moved here
Features
This module add features to Magento newsletter subscription
- generate a coupon for each subscription (must be a "SPECIFIC" coupon type salesrule with "Use Auto Generation" enabled)
- send coupon informations to the subscribed user (extending magento newsletter email template)
- controls each coupon expiration. You can change default configuration at Store > Configuration > Dadolun > Newsletter Coupon > Coupon Expiration Expression config path.
- adds graft for integrations with email marketing platforms
Installation
You can install this module adding it on app/code folder or with composer.
COMPOSER
You need to require the package throught composer:
composer require dadolun95/magento2-newsletter-coupon
Then you'll need to enable the module and update your database:
php bin/magento module:enable Dadolun_NewsletterCoupon
php bin/magento setup:upgrade
SOURCE CODE
If you choose to add the module from source code instead of using composer you need to add module's files on your app/code folder. Then enable it and update the database:
php bin/magento module:enable Dadolun_NewsletterCoupon
php bin/magento setup:upgrade
CONFIGURATION
This module comes with standard functionality disabled. You'll need to enable it from configurations on Store > Configuration > Dadolun > Newsletter Coupon > Enable Coupon Generation and connect a valid salesrule. You can set the expiration delay time expression you prefer (https://www.php.net/manual/en/datetime.formats.relative.php) on Store > Configuration > Dadolun > Newsletter Coupon > Coupon Expiration Delay path. This will allow you to generate and link coupon on each new user newsletter subscription. So create a new SalesRule from your admin panel on Marketing > Promotions > Cart Price Rules calling it "Newsletter Subscription promo" or something like this. Remember that this salesrule must have "SPECIFIC" coupon type and "Use Auto Generation" checkbox must be flagged. Expiration coupon control comes from the module for each coupon adding regular expression setted on each coupon creation date. Set the other rule's settings as you like. Set the new rule id on Store > Configuration > Dadolun > Newsletter Coupon > Used Sales Rule.
Integrations
You can create, delete or update subscriber informations on external platforms with a new module linked with Dadolun_NewsletterCoupon. Requirements:
- if you've installed a 3rd party module that send newsletter email remember to disable magento's from Store > Configuration > Customers > Newsletter > Subscription Options > Disable Newsletter * Sending config path.
- extend Dadolun\NewsletterCoupon\Model\AbstractNewsletterIntegration class on your module adding logic on methods.
- inject your new Vendor_Module\Model\MyClassName with a di argument preference like this:
<type name="Dadolun\NewsletterCoupon\Api\SubscriberInformationRepositoryInterface">
<arguments>
<argument name="marketingEmailIntergrations" xsi:type="array">
<item name="your_integration_name" xsi:type="object">Vendor\Module\Model\MyClassName</item>
</argument>
</arguments>
</type>
- That's all, your module is now able to talk with your favorite email marketing platform
Contributing
Contributions are very welcome. In order to contribute, please fork this repository and submit a pull request.
dadolun95/magento2-newsletter-coupon 适用场景与选型建议
dadolun95/magento2-newsletter-coupon 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.83k 次下载、GitHub Stars 达 8, 最近一次更新时间为 2023 年 06 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「newsletter」 「magento」 「promotions」 「coupon」 「magento2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 dadolun95/magento2-newsletter-coupon 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dadolun95/magento2-newsletter-coupon 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 dadolun95/magento2-newsletter-coupon 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Manage newsletters in Laravel
Sendrill DB
Magento 2 Social Login extension is designed for quick login to your Magento 2 store without procesing complex register steps
The Newsletter Module provides the newsletter features to manage newsletters and mailing lists.
Magento - Clean up session extension
Custom form builder for OctoberCMS
统计信息
- 总下载量: 1.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2023-06-22