News:

Support the VirtueMart project and become a member

Main Menu

[TRACKER 2210] Fix Bug of $product_available_date in browse page

Started by pcinvent, June 19, 2008, 09:02:30 AM

Previous topic - Next topic

pcinvent

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;
PCinvent Studio
http://www.pcinvent.info