Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Short description in product listing


Jennyh

Recommended Posts

I've seen some of the contributions to add a short description in your product listing, however they seem a little more complicated than what I want to do.

 

When you enter a product in your catalog there is a "short description" field. I would simply like that field to show in my product listing. Is there an easy, simple way to do that?

 

Thanks for you time,

Jenny

Link to comment
Share on other sites

Did our previous IT-Guy add this short description field to the catalog himself?

 

I see this in the product_listing.php - however the short description is not showing in the product listing. Any suggestions???

 

//Added for short desc

case 'PRODUCT_LIST_NAME':

$lc_align = '';

if (isset($HTTP_GET_VARS['manufacturers_id'])) {

$lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '"><b>' . $listing['products_name'] . '</a></b><br>' . $listing['short_desc'] . '</b>';

} else {

$lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '"><b>' . $listing['products_name'] . '</a></b><br>' . $listing['short_desc'] . '</b>';}

break;

//End add

Link to comment
Share on other sites

Ok - this is directly above the codes I posted previously. He must've been in the middle of trying to figure out how to add the Short Description.

 

/* commented out for add of short desc

case 'PRODUCT_LIST_NAME':

$lc_align = '';

if (isset($HTTP_GET_VARS['manufacturers_id'])) {

$lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';

} else {

$lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> ';

}

break; */

 

Can anybody help me finish it? Do I need to add it to the list_box_contents? How do I figure out what the file name is for Short Description? I would like the short description to show directly under Product Name.

 

Thanks!

Link to comment
Share on other sites

Ok - after hours of research I decided that "short_desc" was a contribution that he tried to implement and did something wrong. I found his mistake and <<boom>> the product short description shows in the product listing now. It was very exciting.

 

Now, I would like to to add "Model" to the product listing... between product name & buy now. Can anyone tell me how to do that?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...