VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: welrachid on August 03, 2015, 08:00:59 AM

Title: Different product availability values in joomla2/3 with vm3.0.9
Post by: welrachid on August 03, 2015, 08:00:59 AM
Hi. Am i the only one getting a value OF null in $product->product_availability when value is set to 0(zero)
In joomla3 i Get the actual text 0
In joomla2 i Get null

Thanks
Title: Re: Different product availability values in joomla2/3 with vm3.0.9
Post by: welrachid on August 03, 2015, 08:09:04 AM
specifically i have been developing for client a product availability column in notification emails til customers.
in joomla2 this $product->product_availability was NULL when i did a var_dump (when value was set to a single ZERO). other values gave correct text-value.
in joomla3 on the other hand it was a string 0 which is correct