- Posts: 38
- Thank you received: 0
Stock level notify 0 no email
9 years 11 months ago #255143
by Kugata
Stock level notify 0 no email was created by Kugata
-- 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
-- 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.
9 years 11 months ago #255144
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Stock level notify 0 no email
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
Regards,
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
Code:
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.
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.083 seconds