承接 mage-os/module-newsletter-coupon 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mage-os/module-newsletter-coupon

最新稳定版本:1.0.0

Composer 安装命令:

composer require mage-os/module-newsletter-coupon

包简介

MageOS Newsletter Coupon Generator

README 文档

README

Add automatically generated coupon management for newsletter subscribers

Overview

The Newsletter Coupon module allows you to generate a unique coupon for each newsletter subscriber. The coupon will be sent to the subscriber’s email after the subscription.

Features

This module add features to newsletter subscription module

  • 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 > MageOS > Newsletter Coupon > Coupon Expiration Expression config path.
  • adds graft for integrations with email marketing platforms

Installation

  1. Install it into your Mage-OS/Magento 2 project with composer:

    composer require mage-os/module-newsletter-coupon
    
  2. Enable module

    bin/magento setup:upgrade
    

Configuration

This module comes with standard functionality disabled. You'll need to enable it from configurations on Store > Configuration > MageOS > 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 > MageOS > 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 > MageOS > Newsletter Coupon > Used Sales Rule.

Integrations

You can create, delete or update subscriber informations on external platforms with a new module linked with mageOS_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 MageOS\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="MageOS\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

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 138
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固