New Zenner
- Join Date:
- Nov 2007
- Posts:
- 17
- Plugin Contributions:
- 0
Removing product name from the index listing?
Hi, guys!
How do you remove the product name from the index listing? My wish is to have a clickable product image only. Anyone? :D
Views: 2,095
New Zenner
Hi, guys!
How do you remove the product name from the index listing? My wish is to have a clickable product image only. Anyone? :D
Zen Follower
Admin - Configuration - Product Listing - Display Product Name
For all products:
Admin - Configuration - All Listing - Display Product Name
Good Luck
New Zenner
jaycode:
Admin - Configuration - Product Listing - Display Product Name
For all products:
Admin - Configuration - All Listing - Display Product Name
Good Luck
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?
Zen Follower
credible:
Thanks, but that didn't work. The products I want to be fronted with a product image only is in the "featured products" category
Then it will take a bit long:
'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);
and replace it with:
'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);
Basically I just removed the code to display the name link.
Let me know if its working (or not)
Cheers
New Zenner
Worked! Thanks, mate :)
New Zenner
Oh, by the way - could you remove the price from the index listing aswell? Would be highly appriciated :)
Black Belt
Just remove the
. '<br />' . $products_price
from that line, leaving this:```php
'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 />');
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.
New Zenner
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
Black Belt
Did you remove the ) after $products_price? Double check this, and add one just before the ; if it is missing.
New Zenner
http://norskwebforum.no/pastebin/9991
there's the pastebin :D
Black Belt
Hmm... the parentheses on line 54 balance, but it is actually a continuation of line 53, which starts off with an array( .
Try adding another ) at the end - I don't see why it would have worked after the name removal and not after the price removal, but if that makes it work, don't ask questions ;)
Zen Follower
credible:
Worked! Thanks, mate :)
No probie ;)
The fix by gjh should be working too, just check on the syntax, parentheses n such...
Good luck, credible
New Zenner
It worked when I added an extra paranthese :)
Thanks again, guys ;)
Totally Zenned
hide with css???
display: none;
Black Belt
There aren't enough tags to distinguish the parts to hide in this case. Adding the tags would be more involved than removing the unwanted code.
Tell staff why this post should be reviewed.