Author Topic: Add short description to productsnapshot  (Read 3294 times)

Gadensgaard

  • Guest
Add short description to productsnapshot
« on: May 03, 2009, 10:47:15 am »
I am trying to add the product_s_desc variable to the product snapshot so it will display in the "random products" module.

I have added
$tpl->set( 'product_short_desc', $db->f("product_s_desc") );
at line 2337 in ps_product.php and

<?php echo $product_short_desc ?>
to the productsnapshot.tpl.php, but nothing displays. What could be the problem?

Gadensgaard

  • Guest
Re: Add short description to productsnapshot
« Reply #1 on: May 25, 2009, 21:37:43 pm »
No one? Shouldnt this be a simple matter?

Gadensgaard

  • Guest
Re: Add short description to productsnapshot
« Reply #2 on: May 25, 2009, 23:12:11 pm »
Okay, thanks to Ronni from redweb.dk i solved my problem.
All i needed was to get the correct fields from the SQL.

NoeXie

  • Beginner
  • *
  • Posts: 13
Re: Add short description to productsnapshot
« Reply #3 on: June 02, 2009, 16:55:18 pm »
Hi, can u tell us how to do this?
Added the line in 2337, indeed nothing happend.

Hope u will give us more information how u did it!
Your post is kind of popular on google ;D

grtz

Gadensgaard

  • Guest
Re: Add short description to productsnapshot
« Reply #4 on: June 03, 2009, 13:20:58 pm »
Just add the product_s_desc field in the SQL query.

NoeXie

  • Beginner
  • *
  • Posts: 13
Re: Add short description to productsnapshot
« Reply #5 on: June 03, 2009, 14:14:20 pm »
Thanks, found it...

Line 2325:
Code: [Select]
$q = "SELECT product_id, product_name, product_parent_id, product_s_desc, product_thumb_image FROM #__{vm}_product WHERE product_sku='$product_sku'";

Line 2337:
Code: [Select]
$tpl->set( 'product_short_desc', $db->f("product_s_desc") );
Grtz