VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: pcinvent on June 19, 2008, 09:02:30 AM

Title: [TRACKER 2210] Fix Bug of $product_available_date in browse page
Post by: pcinvent on June 19, 2008, 09:02:30 AM
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;
Title: Re: Fix Bug of $product_available_date in browse page & VM1.1 Developer Manual
Post by: aravot on July 04, 2008, 21:19:56 PM
Tracker http://dev.virtuemart.net/cb/issue/2210