By default the Product Short Description is shown on Category Page.
How do I include it to be inside Product Detail Page?
I tried including this code to Product Detail Page but no luck
<?php echo ($product->product_s_desc) ?>
Hello,
The right one is <?php echo $this->product->product_s_desc ?>
and better to use
if (!empty($this->product->product_s_desc)) {
<?php echo $this->product->product_s_desc;
} ?>
$this refers to the current product. The code that you post is for category page.
More information regarding $this vs $product explained here: http://forum.virtuemart.net/index.php?topic=100696.0
Product page fields: http://forum.virtuemart.net/index.php?topic=92756.0
Category page fields: http://forum.virtuemart.net/index.php?topic=97744.0
Take a good look on that posts, they will help you a lot!
Regards,
Bytelord
Quote from: bytelord on August 18, 2012, 06:57:56 AM
Hello,
The right one is <?php echo $this->product->product_s_desc ?>
and better to use
if (!empty($this->product->product_s_desc)) {
<?php echo $this->product->product_s_desc;
} ?>
$this refers to the current product. The code that you post is for category page.
More information regarding $this vs $product explained here: http://forum.virtuemart.net/index.php?topic=100696.0
Product page fields: http://forum.virtuemart.net/index.php?topic=92756.0
Category page fields: http://forum.virtuemart.net/index.php?topic=97744.0
Take a good look on that posts, they will help you a lot!
Regards,
Bytelord
That is so helpful!! Thank you soooOOooo much! ;D