Fix Bug of product_available_date in browse page Virtuemart v1.1 | 2008-06-17

Technology Blog » Web Development

in VM1.1, if you echo $product_available_date, nothing will be returned.

There is a bug exist in the shop.browse.php To fix it, here is how......


Go to line around 449, find this line:

$products[$i]['product_availability_date'] = $db_browse->f("product_availability_date");

$db_browse->f("product_availability_date") is wrong.

If we check back the table in database, we will find that the table name in vm_product is called "product_available_date".

To make it work, we change this line to:

$products[$i]['product_availability_date'] = $db_browse->f("product_available_date");

Then in the browse page template, let say browse_1.php, we echo it by the following code:

echo $product_availability_date;


Posted in offical Virtuemart E-commerce forum here: