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
- This topic has 25 replies, 2 voices, and was last updated 2 months, 2 weeks ago by
Little Panda.
-
AuthorPosts
-
August 22, 2024 at 10:47 am #591695
Little PandaParticipantHello,
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
August 22, 2024 at 2:11 pm #591774
Artem TemosKeymasterHello,
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
November 26, 2024 at 5:11 pm #616186
Little PandaParticipantHello,
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
November 26, 2024 at 7:58 pm #616258
Artem TemosKeymasterHello,
Sorry, try to replace it with the following
add_filter( 'woodmart_waitlist_schedule_time', function() { return MINUTE_IN_SECONDS; } );
Kind Regards
November 27, 2024 at 7:49 am #616372
Little PandaParticipantHi.
Sorry no it sadly hasn’e worked and no notification that the item was back in stock was sent.
πNovember 27, 2024 at 9:16 am #616399
Artem TemosKeymasterCould 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?
November 29, 2024 at 1:40 pm #617641
Little PandaParticipantHi, 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).
November 29, 2024 at 2:11 pm #617662
Artem TemosKeymasterWe 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.
November 29, 2024 at 5:15 pm #617758
Little PandaParticipantOur 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?
November 29, 2024 at 5:32 pm #617769
Artem TemosKeymasterCan we get the access to the production website but don’t disable any plugins?
December 5, 2024 at 9:47 am #619556
Little PandaParticipantHi,
Yes sure – see the private area.
December 5, 2024 at 11:12 am #619616
Artem TemosKeymasterWe 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.December 5, 2024 at 11:18 am #619620
Little PandaParticipantHello
WP cron is manually enabled server side by our VPS wordpress admin so this should be working as expected?
December 5, 2024 at 1:12 pm #619679
Little PandaParticipantHi.
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
December 5, 2024 at 4:59 pm #619774
Artem TemosKeymasterSo now all emails are sent correctly? Let me know if you have any other questions.
January 31, 2025 at 5:38 pm #634528
Little PandaParticipantHello,
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
LPFebruary 3, 2025 at 12:24 pm #634913
Artem TemosKeymasterHello,
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
February 3, 2025 at 12:28 pm #634918
Little PandaParticipantHello,
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
February 3, 2025 at 12:34 pm #634921
Artem TemosKeymasterHello,
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
February 3, 2025 at 12:36 pm #634922
Little PandaParticipantWe have a staging site but it does not allow outgoing mails for security reasons. (Blogvault) so we are at an impasse.
February 3, 2025 at 1:28 pm #634952
Artem TemosKeymasterThere 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.
February 4, 2025 at 3:06 pm #635314
Little PandaParticipantBlogvault 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.
February 4, 2025 at 3:44 pm #635334
Artem TemosKeymasterIn 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.
February 4, 2025 at 4:00 pm #635346
Little PandaParticipantOkay. 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.
February 5, 2025 at 11:14 am #635529
Artem TemosKeymasterHello,
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 eventswoocommerce_product_set_stock_status
andwoocommerce_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
.February 10, 2025 at 12:30 pm #636797
Little PandaParticipantOkay thank you.
You can close this ticket now.
Regards
LP
-
This reply was modified 2 months, 2 weeks ago by
-
AuthorPosts
The topic ‘Waitlist Feature Doesn’t Send Out Notification Email When Product Is In Stock’ is closed to new replies.
- You must be logged in to create new topics. Login / Register