Zen Follower
- Join Date:
- Sep 2006
- Location:
- Leeds, UK
- Posts:
- 165
- Plugin Contributions:
- 0
Short Description show on featured products
Has anyone managed to display the short description on the index main page like it shows for New Products??
Views: 2,815
Zen Follower
Has anyone managed to display the short description on the index main page like it shows for New Products??
Oba-san
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 ...
Zen Follower
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.
Oba-san
Have you an URL that we could perhaps peek at to see what you are seeing? :smile:
Zen Follower
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:D
Oba-san
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 ...
Zen Follower
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.
Zen Follower
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);
Zen Follower
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
Zen Follower
Zen Follower
tbrides:
I downloaded this module.
Then following this tutorial
to get my short descriptions.
This way you can have customised short descriptions
WOW, thank you SOOOOOOOOOOO Much, I've been trying to do this for months!!! You will see the results on my main page now, looks amazing!!! Just how I wanted it. Thank you:lol::lol:
I even got a Buy Now button configured on the main index page. Two birds with one stone there
Zen Follower
glad to be of assistance.
is that your own store? Do you deliver to Ireland?
Zen Follower
tbrides:
glad to be of assistance.
is that your own store? Do you deliver to Ireland?
hi, I am involved in the running of the store yes, please use the contact us or ask product question feature on the site, Thanks
Tell staff why this post should be reviewed.