Stock level notify 0 no email

  • Posts: 38
  • Thank you received: 0
7 years 5 months ago #255143

-- HikaShop version -- : 2.6.4
-- HikaSerial version -- : 1.10.4
-- Joomla version -- : 3.6.4

Hi
When i set "Stock level notify" to 0 i never got any mail when my codes ends, when i set to 1 all work ok, but i want set to 0

Please Log in or Create an account to join the conversation.

  • Posts: 26004
  • Thank you received: 4004
  • MODERATOR
7 years 5 months ago #255144

Hi,

Yes ; when the field is let empty, the feature is deactivated.
And in PHP, when you let a field empty or you put the value "0" ; it gave the same result when using the PHP function "empty".
So the minimum value authorized for that setting is "1".

Here the beginning of the function "checkQuantity" in the HikaSerial pack class

	public function checkQuantity(&$pack) {
		if(empty($pack->pack_params->stock_level_notify) || $pack->pack_params->stock_level_notify <= 0)
			return true;

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.073 seconds
Powered by Kunena Forum