Web Analytics

Fill the form & Get Installation Support





    Send Unique Coupon Code on Every New Subscriber

    Here you have to override the Subscriber Model so for that, you have to create a new module and override the Subscriber model?

    If the answer is yes, then please do the below steps.

    Step 1: Paste the below code in your di.xml

    Step 2: Paste the below code in Your Subscriber.php under Magemonkey/Newsletter/Model/Subscriber.php

    Here, we have passed the ‘coupon_code’ variable in the template vars.
    This variable contains the unique coupon code for every subscriber. Also, we have used the object Manager but you can use the construct method. And we have passed the static RULE id in the code. You can also change the rule id.

    Fill the below form if you have any Magento programming need.





      Recent Articles

      Author Info

      Author Image

      Hire A. Patel

      Get a Free Quote





        Connect With Us