Hi, guys!
How do you remove the product name from the index listing? My wish is to have a clickable product image only. Anyone?
Hi, guys!
How do you remove the product name from the index listing? My wish is to have a clickable product image only. Anyone?
Admin - Configuration - Product Listing - Display Product Name
For all products:
Admin - Configuration - All Listing - Display Product Name
Good Luck
The greatest pleasure in life is doing what people say you cannot do.
Check on www.WebExtremeCustomiser.com for my modules (free contribution):
AJAX Image Swapper
AJAX Banner Swapper
Fixed Navigation
Thanks, but that didn't work. The products I want to be fronted with a product image only is in the "featured products" category, so I figured I had to change the
Admin - Configuration - Featured Listing - Display Product Name instad, but it didn't work nevertheless :\
Any other suggestions?
Then it will take a bit long:
1. create a new folder includes/modules/YOUR_TEMPLATE
2. copy includes/modules/featured_products.php to that folder.
3. in the new featured_products.php, find:
and replace it with:Code:'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 />' . $products_price);
Basically I just removed the code to display the name link.Code:'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 />') . '<br />' . $products_price);
Let me know if its working (or not)
Cheers
The greatest pleasure in life is doing what people say you cannot do.
Check on www.WebExtremeCustomiser.com for my modules (free contribution):
AJAX Image Swapper
AJAX Banner Swapper
Fixed Navigation
Worked! Thanks, mate :)
Oh, by the way - could you remove the price from the index listing aswell? Would be highly appriciated :)
Just remove the
. '<br />' . $products_price
from that line, leaving this:And by the way, the element you are working on is not the featured products listing, it is the featured products centerbox. That is why the admin setting did not work for you.PHP Code:
'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 />');
Hey!
That's what I thought aswell, but it gives me this syntax error:
Parse error: syntax error, unexpected ';', expecting ')' in xxx/xxx/t-########/includes/modules/featured_products.php on line 54
Did you remove the ) after $products_price? Double check this, and add one just before the ; if it is missing.
http://norskwebforum.no/pastebin/9991
there's the pastebin
Bookmarks