Author Topic: Different product availability values in joomla2/3 with vm3.0.9  (Read 2069 times)

welrachid

  • Jr. Member
  • **
  • Posts: 265
  • 3rd party plugin developer
  • Skype Name: wel.rachid
  • VirtueMart Version: Always LATEST stable
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
Best regards,
Wel

welrachid

  • Jr. Member
  • **
  • Posts: 265
  • 3rd party plugin developer
  • Skype Name: wel.rachid
  • VirtueMart Version: Always LATEST stable
Re: Different product availability values in joomla2/3 with vm3.0.9
« Reply #1 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

Best regards,
Wel