Has anyone managed to display the short description on the index main page like it shows for New Products??
Has anyone managed to display the short description on the index main page like it shows for New Products??
Could you be more specific? A brief peice of the products_description shows on both the Product Listing and New Products when enabled in the Configuration settings ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Ok, on the main Page, Index page of the website. Short Description shows fine for New Products. So you see New Products Center Box, Product name, image, Short description and price.
The code for displaying the same information for featured products and specials center box is not included.
Have you an URL that we could perhaps peek at to see what you are seeing?![]()
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
www.lionblade.com
If you look at the first page. The New products have all the Short Description text. I would like to include it on the featured products at the top or "Hot Picks" as I have called it![]()
That has been customized to include that ...
You might look in the file:
/includes/modules/new_products.php
Or, check for the override which should be used for this:
/includes/modules/your_template_dir/new_products.php
And see what has been added for that ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
i've managed to do it.
There's a module for adding the field short description to the products table.
Then I edited the module new products and featured products to add this in.
Yeah!! Did it!!
Replace lines 53-57 of file includes/modules/featured.php
with this code
$featured_products->fields['products_name'] = zen_get_products_name($featured_products->fields['products_id']);
$featured_products->fields['products_short_desc'] = zen_get_products_short_desc($featured_products->fields['products_id']);
$list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => (($featured_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $featured_products->fields['products_short_desc'] . '<br />' .'</a><br />' . $products_price);
One other little problem relating to this. I cannot get the text ta align next to the image???
I have tried hacking the code but it just stay's at the bottom. I know I need to align the image to the left and the text will go around it. Anyone shed some light where I should be looking?? It's in the image call somewhere