VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: welrachid on November 26, 2018, 10:52:33 AM

Title: low stock warning emails cannot be stopped
Post by: welrachid on November 26, 2018, 10:52:33 AM
Hi guys
J!3.9
After updating to newest VM 3.2.4 im having problems with emails with subject COM_VIRTUEMART_PRODUCT_LOW_STOCK_EMAIL_SUBJECT
The "lstockmail" field in configuration have always and still is (i even tried saving just to make sure it writes correct to the db if fieldname changed) turned off

So im wondering why am i receiving these mails?
We dont use stock in this particular shop, so we let it just keep going up.

I have updated from VM 3.2.14

I've already located the place i think is being issued an email from:
administrator/components/com_virtuemart/models/product.php: 2913

but this says that only if it is true it should send out an email?

Hope you guys have an answer
Thanks.
Title: Re: low stock warning emails cannot be stopped
Post by: Jörgen on November 27, 2018, 14:21:08 PM
Does negative stock maybe screw things up ?

Jörgen @ Kreativ Fotografi
Title: Re: low stock warning emails cannot be stopped
Post by: welrachid on November 28, 2018, 10:37:07 AM
Yes. We do have negative stock, but this is because we could sell 50.000 flyers or so, so keeping up with stock makes no sense for us.

Before updating we did not receive any warnings
Title: Re: low stock warning emails cannot be stopped
Post by: Jörgen on November 28, 2018, 10:46:53 AM
Does the negative stock cause this issue ? Or is it unrelated ?

Jörgen