Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2013
    Location
    Bangkok, Thailand
    Posts
    35
    Plugin Contributions
    0

    Default Trying to remove the Details button from featured products on the main page (only)

    In my /includes/modules/MY_TEMPLATE/featured_products.php file in line 72 I edited out the following code in an attempt to remove the Details button from the featured products on the main page (only)...

    PHP Code:
    zen_image($template->get_template_dir('details.gif'DIR_WS_TEMPLATE$current_page_base,'images').'/details.gif').'</a></div>'
    When I do this in stuffs up the site sufficiently. Could someone please tell me how to remove it?

    Note: please see the end of line 72 below. This is what I tried...

    PHP Code:
        'text' => (($featured_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' '<div class="product_title"><a href="' zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' $featured_products->fields['products_id']) . '">' '<div class="box_image"><a href="' zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' $productsInCategory[$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_PRODUCT_NEW_WIDTHIMAGE_PRODUCT_NEW_HEIGHT) . '</a></div>') . '<div class="price">'.$products_price.'</div>'.'<div class="product_detail"><a href="'zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' $featured_products->fields['products_id']) . '">' 
    My site is www.asia-sell.com

  2. #2
    Join Date
    Apr 2013
    Location
    Bangkok, Thailand
    Posts
    35
    Plugin Contributions
    0

    Default Re: Trying to remove the Details button from featured products on the main page (only

    Just let ya'll know that I solved it by including the following in stylesheet.css

    div.product_detail a img {
    display: none;
    }

 

 

Similar Threads

  1. Replies: 1
    Last Post: 4 Aug 2014, 06:45 AM
  2. v150 how to remove featured products from main page?
    By fatimazboutique in forum Basic Configuration
    Replies: 1
    Last Post: 12 Nov 2012, 09:17 AM
  3. Replies: 2
    Last Post: 15 Mar 2011, 05:54 PM
  4. featured products from one category on the main page
    By feisar in forum General Questions
    Replies: 0
    Last Post: 24 Mar 2010, 06:47 PM
  5. Adding a Product Details Button to the Featured Products Page
    By susb8383 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Dec 2009, 05:27 PM

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