• Resolved OC WordPress Web Designer

    (@oc-wordpress-web-designer)


    I have been trying everything to get the emails to send but they are not.

    – The email template is created and active

    – Wp Cron is on. I also added a cron job to run every 30 min when it wasn’t working before: /usr/bin/wget -q -c https://www.ivivision.com/wp-content/plugins/woocommerce-abandoned-cart/cron/wcal_send_email.php

    – The name, email, date, amount, ect… of the abandoned carts are showing in the Abandoned Orders tab.

    – Emails not arriving in spam folder. I have an email log plugin in WordPress also installed and no outgoing abandoned cart emails are being registered.

    – Warning: Use of undefined constant ‘ALTERNATE_WP_CRON’ – assumed ‘‘ALTERNATE_WP_CRON’’ (this will throw an Error in a future version of PHP) in /home/ivivisio/public_html/wp-config.php on line 101

    – Enable abandoned cart emails: Yes, enable the abandoned cart emails.

    – The “Send a test email to:” in the template email tab are sending and arriving normal.

    What’s going on!?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • following. experiencing the same

    Plugin Support priyankajagtap

    (@priyankajagtap)

    Hi @oc-wordpress-web-designer and @sootedninjas,

    Thank you @oc-wordpress-web-designer for explaining this in detail.

    Can you please first let us know whether you are trying to set up the Alternate Cron and cPanel cron job at the same time?

    If yes, then please set up either Alternate cron OR cPanel cron job on your site.

    Also, can you please provide me a screenshot of “wp-config.php” file where you have defined “ALTERNATE_WP_CRON” constant?

    Regards,
    Priyanka Jagtap

    it work but the alternate cron is NOT an elegant solution.

    I will find a different plugin.

    Thread Starter OC WordPress Web Designer

    (@oc-wordpress-web-designer)

    I agree that Alternate Cron is not an acceptable way. I completely removed that as it created issues. Given my initial support comment, how can I get this to work properly?

    Shouldn’t it work with a cron job running every 30 minutes? /usr/bin/wget -q -c https://www.ivivision.com/wp-content/plugins/woocommerce-abandoned-cart/cron/wcal_send_email.php

    I FB messenger Tyche Softwares directly and the gave a different approach

    When the Alternate Cron is set up and defines the constant “define(‘ALTERNATE_WP_CRON’, true );” on your site then website URL will append with the “/?doing_wp_cron” extra parameter.

    If you don’t want to append this extra parameter to site URL then you can disable ALTERNATE_WP_CRON and set up the cron job manually into cPanel.

    You can disable the “ALTERNATE_WP_CRON” parameter as below:
    define(‘ALTERNATE_WP_CRON’, false);

    When you will set the cron job at cPanel then abandoned cart reminder email should be sent to the user and you do not need to define the constant in the “wp_config.php” file.

    Below are the instructions to set up the cron job in cPanel:
    Please go to your cPanel.

    1) First, you need to login to the cPanel. Then you can find “Cron Job” section. After that, you need to add minutes (In that time the cron job will run) in the “Minute:” option. You can decide the frequency which you want to set the script to run at, for example, 5 minutes, 15 minutes, 30 minutes, etc.

    2) You need to put below script path in the “Command:” option:

    /usr/bin/wget -q -c /wp-content/plugins/woocommerce-abandoned-cart/cron/wcal_send_email.php

    Then click on “Add New Cron Job” button.
    For your reference, I am attaching the screenshot: https://www.screencast.com/t/e9C0HJhv7LR

    Once you set up this, please check and let us know whether the cron is working on your site or not.

    If you have any further questions and if you need any help from us for setting this up then please let us know.

    Plugin Support priyankajagtap

    (@priyankajagtap)

    Hi @oc-wordpress-web-designer,

    >> Shouldn’t it work with a cron job running every 30 minutes? /usr/bin/wget -q -c https://www.ivivision.com/wp-content/plugins/woocommerce-abandoned-cart/cron/wcal_send_email.php
    : The path you entered is correct so it should work. If still, it is not working for you then please create a ticket here so that we will check what is causing the problem at your end.

    Regards,
    Priyanka Jagtap

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Emails Are Not Sending’ is closed to new replies.