PCinvent.info

PCinvent Studio Template

Jun 17 2008
Fix Bug of $product_available_date in browse page & Virtuemart v1.1 Developer Manual Print E-mail
Tuesday, 17 June 2008


Read More Articles in: Technology>>>Programming

This Article is written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it


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:

http://forum.virtuemart.net/index.php?topic=41962.0 

Comments (0)Add Comment

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley

busy
Tags:  Technology Programming Fix Bug of $product_available_date in browse page & Virtuemart v1.1 Developer Manual Virtuemart QA & Testing Debug product_available_date product_availability_date Virtuemart v1.1 Bug VM 1.1 Bug
Last Updated ( Tuesday, 17 June 2008 )
 
< Prev   Next >
Site by PCinvent.com