• Resolved Abdul Mian

    (@alrehman97)


    Hello,

    Is it possible to add an automated coupon code from Stripe in the email that is sent after the form is submitted?

    If not stripe, it can be a number of unique codes sent to each email address after every submission?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @alrehman97

    I hope you are doing well.

    I am afraid it isn’t possible out of the box, Forminator has some filters for email submission but then you would need to create a small integration to get the coupons code and inject it into email dynamically, but it will require some development to be done.

    A small example of an available filter:

    /**
     * Message data filter
     *
     * @since 1.0.4
     *
     * @param array                        $data        - the post data.
     * @param Forminator_Form_Model $custom_form - the form.
     * @param Forminator_Form_Entry_Model  $entry       - saved entry @since 1.0.3.
     *
     * @return array $data
     */
    $data = apply_filters( 'forminator_custom_form_mail_data', $data, $custom_form, $entry );

    /forminator/library/modules/custom-forms/front/front-mail.php line 105

    Best Regards
    Patrick Freitas

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @alrehman97 ,

    We haven’t heard from you for several days now, so it looks like you don’t have more questions for us.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Coupon Code in the Email Template’ is closed to new replies.