Home Forums WoodMart support forum Waitlist Feature Doesn’t Send Out Notification Email When Product Is In Stock

Waitlist Feature Doesn’t Send Out Notification Email When Product Is In Stock

Viewing 26 posts - 1 through 26 (of 26 total)
  • Author
    Posts
  • #591695

    Little Panda
    Participant

    Hello,

    We just tried turning on the woodmart waitlist function.
    We then made a product out of stock.
    We then signed up to the waitlist.
    We received the ‘confirm waitlist’ email.
    We can see we are subscribed on the product.
    We then put the product back in stock.
    No back in stock notification email is sent.

    Can you advise what we should be looking at to try and problem solve this issue?

    Regards

    LP

    #591774

    Artem Temos
    Keymaster

    Hello,

    Try to add the following PHP code snippet to the child theme functions.php while testing emails and let me know how it works

    add_filter(
        'woodmart_waitlist_schedule_time',
        function() {
            return MINUTE_IN_SECONDS;
        }
    )

    Kind Regards

    #616186

    Little Panda
    Participant

    Hello,

    Sorry for the late reply on this but it still does not work.
    We also get a syntax error when we try your code.

    Regards

    LP

    #616258

    Artem Temos
    Keymaster

    Hello,

    Sorry, try to replace it with the following

    add_filter(
        'woodmart_waitlist_schedule_time',
        function() {
            return MINUTE_IN_SECONDS;
        }
    );

    Kind Regards

    #616372

    Little Panda
    Participant

    Hi.

    Sorry no it sadly hasn’e worked and no notification that the item was back in stock was sent.
    πŸ™

    #616399

    Artem Temos
    Keymaster

    Could you please disable all plugins that are not related to our theme on your staging website and send us your admin access so we can check this problem?

    #617641

    Little Panda
    Participant

    Hi, Our staging site doesn’t allow mail to be sent so it’s hard to test the functionality, however we can give you admin access (see private area).

    #617662

    Artem Temos
    Keymaster

    We can’t debug the problem if emails don’t work at all. You need to configure mail server on the staging so we can check.

    #617758

    Little Panda
    Participant

    Our staging site cannot send emails from the staging sites created. We are told by our staging site provider (blogvault) that this is a standard practice set for the staging server, it is not possible to bypass this as it’s disabled for security reasons.

    So how can we investigate this issue please?

    #617769

    Artem Temos
    Keymaster

    Can we get the access to the production website but don’t disable any plugins?

    #619556

    Little Panda
    Participant

    Hi,

    Yes sure – see the private area.

    #619616

    Artem Temos
    Keymaster

    We saw the following notice on your website https://monosnap.com/file/lMoBVIixSH9BMXIWoRdQfsuXmwQHGr
    It looks like the cron functionality is turned off on your website. Please enable it and test how it works.

    #619620

    Little Panda
    Participant

    Hello

    WP cron is manually enabled server side by our VPS wordpress admin so this should be working as expected?

    #619679

    Little Panda
    Participant

    Hi.

    Okay we figured it out. Our server side cron was set up for a single WP site when we are actually running a WP multisite which was causing issues with sending mail.

    Regards and thank you for your assistance!

    LP

    #619774

    Artem Temos
    Keymaster

    So now all emails are sent correctly? Let me know if you have any other questions.

    #634528

    Little Panda
    Participant

    Hello,

    We are still having issues with customers on the waiting list not getting notification emails when an item is back in stock. We disable WP_CRON but it’s enabled server side correctly for our wordpress multsite installation. Can you advise on what the issue could be please?

    Thank you
    LP

    #634913

    Artem Temos
    Keymaster

    Hello,

    We tested this on our environment and it works well.
    To troubleshoot this on your end we need to temporarily turn off plugins that are not related to our theme and send us your FTP access so we can check what is wrong.

    Kind Regards

    #634918

    Little Panda
    Participant

    Hello,

    When you say that you tested on your environment do you mean that you cloned our site on your server and tested for outgoing mail? Or do you mean that your demo site is sending out mails correctly? We already gave you access to our live site admin.

    Our site is live so we would rather not start dismantling it. It is however sending out waitist subscription and confirmation emails from the same waitlist feature of woodmart so the problem seems to be related to just the sending out of waitlist emails of subscribers when a product comes back in stock.

    LP

    #634921

    Artem Temos
    Keymaster

    Hello,

    We recreated the same configuration with multisite, disabled crons and used YaySMPT plugin. We need to be able to troubleshoot this on your website with all plugins that are not related to our theme temporarily disabled. Or you can create a staging clone of the live website.

    Kind Regards

    #634922

    Little Panda
    Participant

    We have a staging site but it does not allow outgoing mails for security reasons. (Blogvault) so we are at an impasse.

    #634952

    Artem Temos
    Keymaster

    There must be a way to troubleshoot emails on staging website as well. Maybe they can be stored somewhere as files. Consult with your sever provider for help on this matter.

    #635314

    Little Panda
    Participant

    Blogvault who host our staging site say this:

    The Email functionality is disabled on our staging server for various security reasons.
    Hence, you will not be able to send emails from the staging sites created. Also, as this is a standard practice set for the staging server, it is not possible to bypass this.

    We cannot find a plugin that will allow us to capture emails and store them on our staging site.

    #635334

    Artem Temos
    Keymaster

    In this case, try to create a staging website on a different server. Anyway, we have to be able to investigate it on your environment since it works well on our end.

    #635346

    Little Panda
    Participant

    Okay. It looks like we will have to manually send out hundreds of notification emails then from the collected email addresses or we revert back to our previous stock notifier plugin which worked well.

    Is there any way to manually push the emails to waiting list users?
    What’s the name of the job that controls this action?
    How is the action intiated? Is it when the out of stock status of a product changes to in stock?

    Again it’s very peculiar because the waiting list confirmation emails are sent perfectly as are all other automated emails.

    LP

    • This reply was modified 2 months, 2 weeks ago by Little Panda.
    • This reply was modified 2 months, 2 weeks ago by Little Panda.
    #635529

    Artem Temos
    Keymaster

    Hello,

    Confirmation emails are sent because they don’t use cron jobs.

    Is there any way to manually push the emails to waiting list users? – No.
    What’s the name of the job that controls this action? – woodmart_waitlist_send_in_stock.
    How is the action initiated? Is it when the out-of-stock status of a product changes to in-stock? – Yes, the cron is registered when the stock status changes. The method responsible for this runs on the events woocommerce_product_set_stock_status and woocommerce_variation_set_stock_status.

    Process:
    1. A list of all registered waitlists is retrieved.
    2. The list is divided into a queue of 50 emails by default.
    3. Single cron events are registered to send these emails periodically every hour (default setting).
    4. The cron job ID for sending the emails is woodmart_waitlist_send_in_stock.

    You can find the code for this method here:
    inc\integrations\woocommerce\modules\waitlist\class-emails.php -> send_instock_email_emails.

    #636797

    Little Panda
    Participant

    Okay thank you.

    You can close this ticket now.

    Regards

    LP

Viewing 26 posts - 1 through 26 (of 26 total)

The topic ‘Waitlist Feature Doesn’t Send Out Notification Email When Product Is In Stock’ is closed to new replies.