pcprinting Posted November 2, 2007 Posted November 2, 2007 I've searched and searched the forums & can't find what I'm needing here... I need to display a fake button instead of the buy it now button when a specific category is being used only on the index page when a category is chosen... I DON'T want the buy it now button to display when you click on this product from the index page... like when the url/string is http://mydomain.com/catalog/index.php?cPath=23 I want to replace the buy it now with a no link image. I figured out how to successfully do this on the product_info.php page, but can't grasp what I'm doing wrong on the index page. I have been editing the catalog/includes/modules/product_listing.php file in an attempt to accomplish this, but... ehhhhh??? If this is impossible, my next idea was to just hide the products from this category on the index page somehow, but I couldn't find the answer there either... can I get a tissue?!?!?!?! wahhhh!!!! :'(
pcprinting Posted November 27, 2007 Author Posted November 27, 2007 If anyone out there can help me, I am seriously desperate!!!! I need to basically make an if statement work on this section of code in the catalog/includes/modules/product_listing.php file: case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; I am posting this reply to my own post from weeks ago... anyone, please please please help!!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.