News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Show Product Descriptions on Featured page

Started by Hujub, November 30, 2012, 14:57:35 PM

Previous topic - Next topic

Hujub

Joomla! 2.5.8
VM - 2.0.14

Hi There,

Im trying to get the featured products to show a short description, currently they just show name price and the option to View Product

The Featured products are shown on my home page Using VirtueMart ยป Front page

Website, www.hubjub.co.uk

I have seen this topic - https://forum.virtuemart.net/index.php?topic=82188.0 but that is only talking about VM1.7

Hope to hear soon!




bytelord

#1
Hello,

You have to create a template override for the file joomla_folder\components\com_virtuemart\views\virtuemart\tmpl\default_products.php
To create the override just copy that file inside your_joomla_folder\templates\your_joomla_template\html\com_virtuemart\virtuemart\default_products.php

Then around line 85 place the following code:

<?php
if ($type =="featured") {
      echo 
$product->product_s_desc;
?>



Also please read the following to learn more thing about overrides and how you could use the product fields under category view and product details view:

Use firebug to examine you site code and css styling: https://forum.virtuemart.net/index.php?topic=102850.0

Overrides:
Creating Template overrides: https://forum.virtuemart.net/index.php?topic=98505.0
Template System: https://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system

fields usage:
Product Fields: http://forum.virtuemart.net/index.php?topic=92756.0
Category fields: http://forum.virtuemart.net/index.php?topic=97744.0
$this vs $product: http://forum.virtuemart.net/index.php?topic=100696.0

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

Hujub

This works perfectly,

Many thanks for your on going help bytelord.