Post by Argen » Wed Oct 01, 2014 5:32 pm

Hello,

I've been digging for hours for an extension that would allow me to set a maximum stock alert.
I've found many extensions that allow for a minimum stock alert, but I need the opposite as well.

Ie, stock levels for iPad:
Minimum: 10 <<Alert me via email or report when this happens
Actual Stock: 15
Maximum Stock: 20 <<Alert me via email or report when this happens

Any help would be appreciated.

Thanks!

Newbie

Posts

Joined
Fri Feb 07, 2014 12:21 am

Post by pprmkr » Wed Oct 01, 2014 6:33 pm

Try attached vQmod.

You can set minimum and maximum stock level:

Code: Select all

			$minimum_stock = 10;
			$maximum_stock = 20;

Attachments

Copy to /vqmod/xml


User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by Argen » Wed Oct 01, 2014 6:44 pm

Thank you very much @pprmkr !

If I understand correctly, the email is generated when some one orders an item. Could I set the $minimum_stock variables in the product's page so that this level can be set for each product by the storemen?

Thanks again!

Newbie

Posts

Joined
Fri Feb 07, 2014 12:21 am

Post by pprmkr » Wed Oct 01, 2014 7:41 pm

Yes, it is possible.

- Add input fields to product_form.tpl
- Add columns to table oc_product if not exist
- Add code to product model
- Add some text
- Get values in stockalert

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands
Who is online

Users browsing this forum: No registered users and 5 guests