Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Nov 2007
    Posts
    17
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Jun 2007
    Location
    Australia - Melbourne
    Posts
    310
    Plugin Contributions
    6

    Default Re: Removing product name from the index listing?

    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

  3. #3
    Join Date
    Nov 2007
    Posts
    17
    Plugin Contributions
    0

    Default Re: Removing product name from the index listing?

    Quote Originally Posted by jaycode View Post
    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?

  4. #4
    Join Date
    Jun 2007
    Location
    Australia - Melbourne
    Posts
    310
    Plugin Contributions
    6

    Default Re: Removing product name from the index listing?

    Quote Originally Posted by credible View Post
    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:

    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:
    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);
    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 />') . '<br />' . $products_price);
    Basically I just removed the code to display the name link.

    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

  5. #5
    Join Date
    Nov 2007
    Posts
    17
    Plugin Contributions
    0

    Default Re: Removing product name from the index listing?

    Worked! Thanks, mate :)

  6. #6
    Join Date
    Nov 2007
    Posts
    17
    Plugin Contributions
    0

    Default Re: Removing product name from the index listing?

    Oh, by the way - could you remove the price from the index listing aswell? Would be highly appriciated :)

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Removing product name from the index listing?

    Just remove the
    . '<br />' . $products_price
    from that line, leaving this:
    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_WIDTHIMAGE_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.

  8. #8
    Join Date
    Nov 2007
    Posts
    17
    Plugin Contributions
    0

    Default Re: Removing product name from the index listing?

    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

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Removing product name from the index listing?

    Did you remove the ) after $products_price? Double check this, and add one just before the ; if it is missing.

  10. #10
    Join Date
    Nov 2007
    Posts
    17
    Plugin Contributions
    0

    Default Re: Removing product name from the index listing?


 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Removing Category name from Product Listing
    By tcschmit in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 24 Jan 2011, 05:34 PM
  2. Removing the Sort(Top) Row from the Product Listing
    By slee in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 2 Sep 2010, 03:31 PM
  3. Replies: 2
    Last Post: 12 Mar 2010, 04:33 PM
  4. Removing product listing from top of the page?
    By Jonsen in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Aug 2007, 03:51 PM
  5. Replies: 3
    Last Post: 2 Apr 2007, 10:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR