Zen Follower
- Join Date:
- Dec 2011
- Posts:
- 287
- Plugin Contributions:
- 0
Remove more info for Document products
Hi, Im trying to set up the product listing page to have breaks in it, I am trying to achive this by adding completely blank document products. This works except there is still the "More info..." link to the right. Is there any simple way to remove the more info only for document products?
Im thinking it would be some php coding in the product_listing.php page around line 103
// more info in place of buy now
$lc_button = '';
if (zen_has_product_attributes($listing->fields['products_id']) or PRODUCT_LIST_PRICE_BUY_NOW == '0') {
$lc_button = '<a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? $_GET['cPath'] : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
Adding an if statement to the above? Sorry I dont know any php im just guessing, But hopefully someone can help.
Or if you think there could be another way to separate my products, I wouldnt like to use another category tree as I think it would become too complicated for the users.
Take a look at an example here:
http://kitchenwarehouseltd.com/products/complete-kitchen-units/18mm-shaker/beech-units