Page 1 of 1

Out of stock email Alert on checkout

Posted: Wed Feb 08, 2012 5:26 pm
by karman
A simple mod to sent a alert t email when a product goes of stock when order is placed (less than 1)

Tested on 1.5.1.x

Re: Out of stock email Alert on checkout

Posted: Fri Feb 10, 2012 5:19 am
by stoksey
Fantastic.
Will this work with latest wersionand how do I install. I have vqmod installed.

Appreciate help.

Ian

Re: Out of stock email Alert on checkout

Posted: Fri Feb 10, 2012 5:59 am
by karman
Hi

I wrote it for latest version.

Just copy the file to vqmod xml directory. It uses the email address from admin side. And currently emails for each product going out of stock. There is no config involved to get it to work

L:

Re: Out of stock email Alert on checkout

Posted: Tue Apr 03, 2012 6:55 pm
by Out2lunch
Thanks for this...

;D

Re: Out of stock email Alert on checkout

Posted: Tue Apr 17, 2012 1:27 am
by robster
Hi and thanks for this, but it does not seem to be working for me. I tested by setting product to stock level of 1 then from front end I ordered this product, taking stock level down to 0. I did not receive an out of stock email.

I am using 1.5.1.3.1

Am I understanding the operation of this mod correctly? Any ideas?

Rob

Re: Out of stock email Alert on checkout

Posted: Tue Apr 17, 2012 7:02 am
by karman
Hi,

yup, that what suppose todo.

Please check your vqmod logs to make sure the mod is applying correctley. Also check your maillog on the server to see if the email is not maybe getting blcoked by spam or something.

L:

Re: Out of stock email Alert on checkout

Posted: Tue May 22, 2012 5:43 am
by fmobile
Karman,

I installed the mod and everything works fine! But I have one little question, now I get the 'model' field in the out of stock mail, but I want to see the product_name field in case of the 'model' field in my mail.

I already tried to change 'model' to 'product_id' in the .XML file but without succes.

Can you please tell me what to do?

Thank you very much, great mod!

Re: Out of stock email Alert on checkout

Posted: Tue May 22, 2012 2:30 pm
by karman
Hi,

Try 'name' . i've not tested it, but that should give you the product name field

L:

Re: Out of stock email Alert on checkout

Posted: Tue May 22, 2012 6:00 pm
by fmobile
Hi,

I tried 'name' but it doesn't give any information in mail then. Blank

Re: Out of stock email Alert on checkout

Posted: Tue May 22, 2012 6:10 pm
by karman
Sorry, should have tested it before.. I see nwo what the issue is.

give me a bit, will fix

Re: Out of stock email Alert on checkout

Posted: Tue May 22, 2012 6:29 pm
by karman
Fmobile,

my dev opencart system is up to @#% again today, but please test the attached vqmod file, Should work now.

if not, can you just sent me any errors you get.

thanks
L:

Re: Out of stock email Alert on checkout

Posted: Sun Jul 15, 2012 5:02 am
by Kristofke
I have tested the latest release of your mod and it blocks all e-mails coming from opencart, also order notifications.

Re: Out of stock email Alert on checkout

Posted: Sun Jul 15, 2012 3:58 pm
by karman
Does the old one work fine? ... I need to install opencart again, but simply swamped with work till end of this month so cannot test anything at th emoment

Re: Out of stock email Alert on checkout

Posted: Sat Dec 01, 2012 5:07 pm
by pprmkr
Edited the mod and tested on 1.5.4.1

Sends alert mail to admin when quantity < 1

You can edit row 12 in the xml to set the warning stock quantity:

Code: Select all

if ($qry->row['quantity'] < 1) {
And the text starting on row 15:

Code: Select all

				$text = 'Warning!'."\n\n";
				$text .= 'Product stock reached 0'."\n\n";
				$text .= 'Product name:'.$qry->row['name']."\n";
				$text .= 'Product model:'.$qry->row['model']."\n";

Re: Out of stock email Alert on checkout

Posted: Thu Feb 21, 2013 4:30 pm
by Pamella
Great ;-) many thanks to share it but it seems than it do not support option(s), is not ?

Re: Out of stock email Alert on checkout

Posted: Sat Mar 02, 2013 2:47 am
by Pamella
if using " in product name, then it's displayed as " in subject and content message sent

please, do you know how to fix it ?

many thanks ;-) in advance

Re: Out of stock email Alert on checkout

Posted: Thu May 01, 2014 4:52 pm
by ramjiweb
hi ,
i use 1.5.6.1, how to add email Id in admin

Re: Out of stock email Alert on checkout

Posted: Fri Mar 15, 2019 1:34 am
by krastew
Hi folks and thank you for the contribution to the developer of this xml.

I have updated the xml to be compatible for version 3.0.3.1 :) It should work on any 3.X version. Enjoy!