• Resolved laurlau

    (@laurpm)


    Hello,
    I have just installed this plugin on a freshly WP and I’m receiving this error when I get the Coupon Email:
    * Notice: Undefined variable: email in /home3/sirneanul/aerosirna.ro/wp-content/plugins/flexible-coupons/src/Views/emails/coupon.php on line 8 *
    On line 8, I have: <?php do_action( ‘woocommerce_email_header’, $email_heading, $email ); ?>
    Also, the yesr date mentioned in the body email is pretty incorrect:
    In response to an order 381 placed iulie 4, 0852, we are sending you a coupon for shopping in our shop.
    Can someone please tell me what I have to do here..?
    Thank you!

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support tomasz_bednarek

    (@tomasz_bednarek)

    Hi @laurpm,

    thank you for your message!

    Are you using any plugins to modify/ hide the WooCommerce checkout – and email field?

    Could you send the list of the plugins and the URL of the website where I can see the Product-Coupon PDF?

    That will help me see your environment better, replicate the issue and find answers.

    If you have any questions let me know.

    Best regards,

    Thread Starter laurlau

    (@laurpm)

    Hello,
    These are the plugins that I am using
    https://ibb.co/svXmwp9
    I don’t have any complex snippets, just hide breadcrumbs and add an image to the order.
    You can place a test order here https://aerosirna.ro/hai-la-zbor/
    Please check your spam for the coupon email (didn’t set wp-smtp yet)
    Thank you ! ??

    Plugin Support tomasz_bednarek

    (@tomasz_bednarek)

    Hi,

    thank you.

    I have placed a test order no 588. Please change its status to the one when the coupon is issued or create one manually in the order edit screen (in the metabox on the right side).

    I will check if I receive the coupon.

    Could you send me the screenshot of the Zbor de 30 minute product edit screen?

    Best regards,

    Thread Starter laurlau

    (@laurpm)

    hello,
    done. you have the coupon on your email (junk maybe)
    product edit screen https://ibb.co/55nDgVP

    Plugin Support tomasz_bednarek

    (@tomasz_bednarek)

    Hi laurpm,

    I have received the email with the link to the PDF coupon.
    https://we.tl/t-SpPdyrrP29

    Please check if your email client has not put the email in the Spam/ another folder.

    I have informed our programmer about the year in the email. I will let you know as soon as it’s fixed.

    For now, you may copy the e-mail template and adjust it as you need and then put them inside your theme’s folder.

    The email template is in the WooCommerce->Settings->Email.

    You may also find them through FTP in the wp-content/plugins/flexible-coupons/src/Views/emails/ folder.

    Then copy the template to: YOURTHEME/woocommerce/emails/…

    It should help you adjust the template’s date/ year format as you wish. Let me know if that worked well.

    Best regards,

    Thread Starter laurlau

    (@laurpm)

    so you didn’t get in your email this error?

    * Notice: Undefined variable: email in /home3/sirneanul/aerosirna.ro/wp-content/plugins/flexible-coupons/src/Views/emails/coupon.php on line 8 *

    Plugin Support tomasz_bednarek

    (@tomasz_bednarek)

    I have seen the notice in before the content of the email.

    I haven’t though repricated the issue in my environment.

    This problem may be related to another plugin used in your shop. Please try to isolate an issue, by disable plugins which are not our or WooCommerce. Then please enable plugins one by one, deleting cache, and check if the problem still exist.

    If yes, please test the plugin again, but now using Storefront – official WooCommerce theme. It will help us identify a possible conflict with your theme.

    Please, let me know about the result.

    Best Regards,`

    Plugin Support tomasz_bednarek

    (@tomasz_bednarek)

    @laurpm

    I informed also our programmer to check the issue with the notice.

    I will let you know when I know more.

    For now, you may add:

    @ini_set( ‘display_errors’, ‘Off’ );

    to wp-config.php – it should hide this notice from the email.

    Best regards,

    Thread Starter laurlau

    (@laurpm)

    Disabled the plugins one by one (but not woocommerce and elementor) and switched to Storefront. Same issue.
    Switched to WP SMTP to send emails. same issue ??

    I turned off the display errors..

    ini_set(‘display_errors’,’Off’);
    ini_set(‘error_reporting’, E_ALL );
    define(‘WP_DEBUG’, false);
    define(‘WP_DEBUG_DISPLAY’, false);
    I will follow any updates on this plugin and will recommend to my client, because that’s what he needs.
    Thank you!

    Plugin Support tomasz_bednarek

    (@tomasz_bednarek)

    Thank you laurpm,

    I will let you know as soon as issues are checked/ fixed.

    Meanwhile, if you have any questions let me know.

    Have a good day!

    Best regards,

    Plugin Support rzepsen

    (@rzepsen)

    Hello Laurpm,

    You can already download the plugin fix directly from the repository. The latest version of the plugin is 1.4.4, in which we have improved our own coupon expiry date and date in email template. We have also fixed the problem you reported to Tomasz last week.

    Please let us know if there everything is ok with using of our plugin.

    Best regards

    Thread Starter laurlau

    (@laurpm)

    wohooo now it works perfect! thank you!!

    Plugin Support rzepsen

    (@rzepsen)

    Hello Laurpm

    Thank you for your message. I am closing this topic If you still have any questions, feel free to contact me.

    Best regards

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Undefined variable: email in ….’ is closed to new replies.