• Resolved mika98

    (@mika98)


    Hi, May I know can cartbounty work on localhost?
    Because I wanna try the email function but it’s not working, I’m thinking is it affected by the environment since I’m run it at my localhost.

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Contributor Nauriskolats

    (@nauriskolats)

    Hi, thanks for reaching out @mika98,
    The short answer is – Yes, CartBounty can work on localhost environment and send out emails. However if you are having troubles receiving emails, I would suggest you try changing the From email address using your functions.php file.

    function change_from_email( $html ){
    	return '[email protected]';
    }
    add_filter( 'cartbounty_pro_from_email', 'change_from_email' );
    

    Try adding there your Gmail email or another one.
    Please take a look at this FAQ for more details: https://www.cartbounty.com/#actions-and-filters

    Let me know if this helps or we need to look deeper.

    Best,
    Nauris

    Thread Starter mika98

    (@mika98)

    Hi @nauriskolats, thanks for your reply.

    I added the function inside my wordpress functions.php file. But it’s still unable to receive email. Is it related with I’m using the free version not pro version?

    • This reply was modified 3 years, 11 months ago by mika98.
    Plugin Contributor Nauriskolats

    (@nauriskolats)

    If we are talking about email notifications about newly abandoned carts then no – you do not need to have a Pro version. You should be receiving email notifications.

    Are you receiving emails when a new order is placed on your localhost store?
    If yes, then you may need to check if your WP Cron service is enabled since it is responsible for sending out automated emails about newly abandoned carts.

    To enable the WordPress cron job, open your wp-config.php file and locate the line:

    define('DB_COLLATE', '');

    Under it, add the following line:

    define('DISABLE_WP_CRON', false);

    Thread Starter mika98

    (@mika98)

    No, I’m also unable to receive the emails when there have new order placed.
    I added the code below but still don’t have any changes.

    define(‘DISABLE_WP_CRON’, false);

    Is there have pre-conditions I need to be fulfill before receiving email?

    • This reply was modified 3 years, 11 months ago by mika98.
    Plugin Contributor Nauriskolats

    (@nauriskolats)

    Thank you @mika98 for getting back.
    Since you are not receiving emails neither from WooCommerce nor CartbOunty – you will have to take a look at the configuration of your localhost email server.
    I’m guessing you have not configured your localhost mail server or it is disabled which is why you are not getting any emails at the moment.

    If you are on a Mac, please take a look at this tutorial on how to kickstart your mailserver on localhost: https://www.developerfiles.com/how-to-send-emails-from-localhost-mac-os-x-el-capitan/

    And if you are on a Windows environment and you are running your setup on XAMPP, then there are a lot of good resources as well that should get you sending emails in no time ?? For example this one: https://meetanshi.com/blog/send-mail-from-localhost-xampp-using-gmail/

    Hope this gives you a direction to look forward to ??

    Best wishes,
    Nauris

    Thread Starter mika98

    (@mika98)

    Hi Nauris,

    Thanks for your assistance, I’m able to receive emails from WooCommerce now.
    and I’m able to receive emails from Cartbounty now. It’s so great even a bit delayed.

    1. May I know can I edit the email content which send to admin?
    2. If I set “Every 10 minutes” for the field “How often to check and send emails about newly abandoned carts?”
    It is means Cartbounty will check the abandoned carts every 10 minutes, if it’s having changes, then will send emails
    OR
    Cartbounty will check the abandoned carts every 10 minutes, no matter carts having any changes or not, then will send emails

    Thank you so much

    • This reply was modified 3 years, 11 months ago by mika98.
    • This reply was modified 3 years, 11 months ago by mika98.
    Plugin Contributor Nauriskolats

    (@nauriskolats)

    Hi @mika98,

    Glad to hear that you have been able to fix your mail server.

    Answering your question.
    Once the cart is saved and is considered as abandoned (cart is considered as abandoned after 60 minutes of inactivity in the cart), you will receive a notification about it in your email.

    The setting “How often to check and send emails about newly abandoned carts?” simply changes how often should an automated process run to check for newly abandoned carts. If you set it to 10 minutes, it means that every 10 minutes a function will be fired that will take a look at your carts and if there is a new abandoned cart, then a notification will be sent out to administrator’s email.

    You will have to wait at least 60 minutes to get your email notification.

    Hope this makes sense ??

    Best,
    Nauris

    Thread Starter mika98

    (@mika98)

    Hi Nauris, I having few question for this email setting

    1. May I understand as even I selected 10 minutes for The setting “How often to check and send emails about newly abandoned carts?”. I still need to wait 60 minutes to get my email notification?

    2. Is 60 minutes is default? So If I choose 10 minutes for the settings, I need to wait 60 minutes + 10 minutes to get the email?

    3. For the selected 10 minutes for The setting “How often to check and send emails about newly abandoned carts?” = every 10 minutes will do checking for my abandoned carts ONLY. Even it’s detected abandoned cart, but will still wait after 60 minutes to send email?

    Plugin Contributor Nauriskolats

    (@nauriskolats)

    Hi @mika98

    Thanks for your questions.
    1) Yes, you are correct, you will still need to wait for 60 minutes since it is the default time after the cart is considered as abandoned.

    2) In your example 60 minutes + 10 minutes should be the maximum time since the automated function runs in its own schedule. It could also be 60 minutes + 1 minute.

    3) Yes, you will receive email notification only about those carts that are considered as abandoned (have been left for 60 minutes).

    Thread Starter mika98

    (@mika98)

    Hi Nauris,

    Thanks for you clearly answer.
    so may I know the purpose for the setting “How often to check and send emails about newly abandoned carts?”, If it’s won’t affected the time for me to receive the email?

    Plugin Contributor Nauriskolats

    (@nauriskolats)

    Hi @mika98, the setting basically is intended to give you an option to choose how often you want to be notified about abandoned cart activity in your store. For example, if your store is getting a lot of traffic and many abandoned carts, you may want to receive notifications just once a day.
    It simply changes how often should the automated function, that checks if there are any new abandoned carts, is running. ??

    Thread Starter mika98

    (@mika98)

    Hi @nauriskolats , But the 10 minutes options is not worked when I wanna to be notified every 10 minutes right?

    Plugin Contributor Nauriskolats

    (@nauriskolats)

    I will try to explain this in a different way.
    There are two separate operations or functions here:

    a) the function that checks if a cart has been abandoned. Once the cart is saved, it is considered as abandoned after a period of 60 minutes. Email notifications will be sent out only after the cart is abandoned.

    b) the function that runs automated checks “How often to check and send emails about newly abandoned carts”. This option simply lets you choose how often you want to check for abandoned carts and be notified about them if there are any new abandoned carts.

    You are not able to affect the “a” function, however you can control the “b” function.

    Hope I was able to make more sense now ??

    Thread Starter mika98

    (@mika98)

    Oh I think I got what you explain to me.

    So even I had abandoned carts in the table, but it’s not yet considered as abandoned after a period of 60 minutes.

    When the 10 minutes checking function working. It’s not yet to be an abandoned cart that will notified my admin. Is it?

    Plugin Contributor Nauriskolats

    (@nauriskolats)

    That is correct. You may have a lot of carts captured, but not all of them are already abandoned – some of them are still in use and they are considered as abandoned if the customer no longer interacts with his shopping cart.

    You will never receive an email notification about carts that are still in use as they are not yet abandoned.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Unable to receive email’ is closed to new replies.