Author Topic: low stock warning emails cannot be stopped  (Read 473 times)

welrachid

  • Jr. Member
  • **
  • Posts: 260
  • 3rd party plugin developer
  • Skype Name: wel.rachid
  • VirtueMart Version: Always LATEST stable
low stock warning emails cannot be stopped
« 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.
Best regards,
Wel

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2389
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: low stock warning emails cannot be stopped
« Reply #1 on: November 27, 2018, 14:21:08 pm »
Does negative stock maybe screw things up ?

Jörgen @ Kreativ Fotografi
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)

welrachid

  • Jr. Member
  • **
  • Posts: 260
  • 3rd party plugin developer
  • Skype Name: wel.rachid
  • VirtueMart Version: Always LATEST stable
Re: low stock warning emails cannot be stopped
« Reply #2 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
Best regards,
Wel

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2389
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: low stock warning emails cannot be stopped
« Reply #3 on: November 28, 2018, 10:46:53 am »
Does the negative stock cause this issue ? Or is it unrelated ?

Jörgen
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)