
Originally Posted by
shmints
1. In my New & All products listings I have the products image and on its right there are few detaikls with "more info".
Can I display the products description instead of the "more info" thing?
What version of ZC are you running ? One example of a default 1.3.5 all listing:
http://www.ave nv iew.com/avenview/index.php?main_page=products_all (take out the spaces between www and .com)
The files you need to edit are:
/includes/templates/template_default/templates/tpl_modules_products_new
/includes/templates/template_default/templates/tpl_modules_products_all
I strongly suggest you copy these files to the override folder:
/includes/templates/YOUR_TEMPLATE/templates/
In the files (they are basically the same), look for where you have the price
Add the following where you want the description to appear. Note that the 350 controls the number of characters to display before truncating and putting a "more":
Code:
if (PRODUCT_ALL_LIST_DESCRIPTION != '0') {
$disp_text = zen_get_products_description($products_all->fields['products_id']);
$disp_text = zen_clean_html($disp_text);
$display_products_description = stripslashes(zen_trunc_string($disp_text, 350, '<a href="' . zen_href_link(zen_get_info_page($products_all->fields['products_id']), 'products_id=' . $products_all->fields['products_id']) . '"> ' . MORE_INFO_TEXT . '</a>'));
} else {
$display_products_description = '';
}
I'm not sure where the "more" was created,
#############
STOPPED TO THINK
###############
ignore everything above this line.
Go to your admin, navigate to the product (any one for now), edit it, and add some text to the description box.
The problem is you dont have any descriptions.
However, that said, it will likely display 150 characters and the "more...". If you want to increase that, then you can follow the instructions above and .... well, it will make sense :)
That all said, if you really want to hack the page, you can go all the way... take a look at:
http://www.etc h art.ca/index.php?main_page=products_all (remove the spaces in URL)
Bookmarks