New Zenner
- Join Date:
- Apr 2013
- Location:
- Bangkok, Thailand
- Posts:
- 35
- Plugin Contributions:
- 0
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)...
. 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...
'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_WIDTH, IMAGE_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 https://www.asia-sell.com