Author Topic: 2.0.8e - low stock notification to vendor does not work (updated)  (Read 8061 times)

John2400

  • Virtuemart - the Future is ever Changing
  • Global Moderator
  • Full Member
  • *
  • Posts: 1568
  • VirtueMart Version: Use VM3.0.12
Re: 2.0.7 I - low stock notification to vendor does not work (updated)
« Reply #15 on: June 20, 2012, 13:51:35 pm »
Hi Update,

It did not work -

I was not thinking earlier- I simply picked a product with no variants and purchased two products - the reminder was set to 1.

The result was that all emails came through but no email came to tell me the stock was low.?

as you can see in the image - no stock left after shipping twice - and no emails came through regarding the stock levels)

If you would like to test just let me know alatak

[attachment cleanup by admin]

John2400

  • Virtuemart - the Future is ever Changing
  • Global Moderator
  • Full Member
  • *
  • Posts: 1568
  • VirtueMart Version: Use VM3.0.12
Re: 2.0.7 H- low stock notification to vendor does not work (updated)
« Reply #16 on: June 26, 2012, 23:34:11 pm »
Hi Update,

It did not work -

I was not thinking earlier- I simply picked a product with no variants and purchased two products - the reminder was set to 1.

The result was that all emails came through but no email came to tell me the stock was low.?

John2400

  • Virtuemart - the Future is ever Changing
  • Global Moderator
  • Full Member
  • *
  • Posts: 1568
  • VirtueMart Version: Use VM3.0.12
Re: 2.0.8c - low stock notification to vendor does not work (updated)
« Reply #17 on: July 05, 2012, 12:32:42 pm »
I still have this issue _ I note a new post item 1) in this post has same issue

http://forum.virtuemart.net/index.php?topic=104852.0 from 'toonetcreation'

could others test please

or is there a direct setting that says - email the vendor when Items are at set limit or 0 some where and I have missed it.?

yes I have set this in the actual product as stated in my first post here below.

John2400

  • Virtuemart - the Future is ever Changing
  • Global Moderator
  • Full Member
  • *
  • Posts: 1568
  • VirtueMart Version: Use VM3.0.12
Re: 2.0.8c - low stock notification to vendor does not work (updated)
« Reply #18 on: July 13, 2012, 06:09:51 am »
Sorry this won't work for me as - no orders appear in the back in 2.0.8 d

toonetcreation

  • Jr. Member
  • **
  • Posts: 73
Re: 2.0.8d - low stock notification to vendor does not work (updated)
« Reply #19 on: July 13, 2012, 08:27:24 am »
I'm really so sorry to say that, but VM 2.0.8c or d is not a STABLE version... :-(

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9607
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: 2.0.8d - low stock notification to vendor does not work (updated)
« Reply #20 on: July 13, 2012, 22:17:19 pm »
You may noticed toonedtcreation that the D version was not officially released. Official is what your virtuemart says.

and when you think that way toonetcreation, neither windows nor linux is stable
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

John2400

  • Virtuemart - the Future is ever Changing
  • Global Moderator
  • Full Member
  • *
  • Posts: 1568
  • VirtueMart Version: Use VM3.0.12
Re: 2.0.8d - low stock notification to vendor does not work (updated)
« Reply #21 on: July 14, 2012, 04:45:40 am »
Ok - after fixing the orders in the back - Great stuff

* tried the - low stock  notification - my usual steps - the product was set to inform at 1 and I ordered and confirmed _

I did not receive notification of the products are empty - the notify on the front worked well - so no one will be able to purchase the product -

* again not a big issue - for me.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9607
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: 2.0.8d - low stock notification to vendor does not work (updated)
« Reply #22 on: July 14, 2012, 12:10:38 pm »
For most people not, because the whole inventory like it was done in vm1 and also now in vm2 is just a guess.

In a correct inventory system you cannot just change the amount. It must be stored in a history and usually you just add what is new in your storage and the software must calculate the endnumber.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

John2400

  • Virtuemart - the Future is ever Changing
  • Global Moderator
  • Full Member
  • *
  • Posts: 1568
  • VirtueMart Version: Use VM3.0.12
Re: 2.0.8d - low stock notification to vendor does not work (updated)
« Reply #23 on: July 14, 2012, 12:40:52 pm »
Milbo - ok thanks -

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9607
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: 2.0.8d - low stock notification to vendor does not work (updated)
« Reply #24 on: July 19, 2012, 02:53:09 am »
What happens when you set the lowstock on 5 or so.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

John2400

  • Virtuemart - the Future is ever Changing
  • Global Moderator
  • Full Member
  • *
  • Posts: 1568
  • VirtueMart Version: Use VM3.0.12
Re: 2.0.8e - low stock notification to vendor does not work (updated)
« Reply #25 on: July 19, 2012, 10:03:14 am »
Low stock notification:

2.0.8 e  - I set a good at 10 products, I set the front to 'Notify me' I set low stock to 6 .

I purchased the good , 2 then , 3, then 3 again- 6 emails arrived - correct.

I went to orders and changed the oredrs to shipped , one at a time, and email came through for each order - correctly.

I went to the product and the stock went to 0 from 10 with notification at 6 and still nothing arrived by email

* No email arrived notifying me of low stock at any time -

I still think that if "Notify me" is working correctly on the front end when the product gets to 0- then why can't the email be triggered by that?

abzamon

  • Beginner
  • *
  • Posts: 22
Re: 2.0.8e - low stock notification to vendor does not work (updated)
« Reply #26 on: August 21, 2012, 10:54:58 am »
The bug is fixed in 2.0.9 b.
If you dont want to upgrade now try this:

I think the problem was in models/product.php line 1813 a '-' (2.0.8c)  instead of a '+' (2.0.9 b) $signInStock test.
Code: [Select]
if ($signInStock == '+') {
            $this->_db->setQuery ('SELECT (`product_in_stock`+`product_ordered`) <= `low_stock_notification` '
                  . 'FROM `#__virtuemart_products` '
                  . 'WHERE `virtuemart_product_id` = ' . $id
            );
           
            if ($this->_db->loadResult () == 1) {
               $this->lowStockWarningEmail( $id) ;
            }