VIRTUEMART: To display both SHORT DESCRIPTION & PRODUCT DESCRIPTION in Browse page
Add the field you want to the SQL query in:
administrator/components/com_virtuemart/html/shop_browse_queries.php
on line 37 after `product_s_desc` add `product_desc`
Put the data in a variable in:
administrator/components/com_virtuemart/html/shop.browse.php
- after the product_s_desc version on line 392, add:
$product_description = $db_browse->f(“product_desc”);
- after the product_s_desc version on line 438, add:
$products[$i]['product_description'] = $product_description;
Use the $product_description variable in your browse_x.php template as needed. I used it on the folowing:
components/com_virtuemart/themes/default/templates/browse/browse_1.php
Don’t forget to wrap it in a DIV tag, so you can apply CSS styles to it..
i love you!!!!!!!!!!!!!!!! thanx!!!!!!!!!!!!!!11