scd Posted March 18, 2008 Posted March 18, 2008 I'm attempting to remove the "add to cart" button from the list of products within a category... basically any products shown on the index.php I need to get the customer into the product description to choose a product option before purchase, hence only wanting the "Details" button to display outside of the individual product_info's I have managed to remove the buy buttons from the specials page and the new products page, but the other one has me STUMPED! I have this code... $define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL, 'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME, 'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER, 'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE, 'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY, 'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT, 'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE, 'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW,); Now, i've tried deleting the last line... but the button still shows/works. Deleting any other line in that code removes what it is meant to... but the buy button JUST WON'T GO!!!! Thanks in advance to ANYONE that can assist. Dave
box25 Posted March 18, 2008 Posted March 18, 2008 I'm attempting to remove the "add to cart" button from the list of products within a category... basically any products shown on the index.php I need to get the customer into the product description to choose a product option before purchase, hence only wanting the "Details" button to display outside of the individual product_info's I have managed to remove the buy buttons from the specials page and the new products page, but the other one has me STUMPED! I have this code... $define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL, 'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME, 'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER, 'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE, 'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY, 'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT, 'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE, 'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW,); Now, i've tried deleting the last line... but the button still shows/works. Deleting any other line in that code removes what it is meant to... but the buy button JUST WON'T GO!!!! Thanks in advance to ANYONE that can assist. Dave Have you tried it as, $define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL, 'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME, 'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER, 'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE, 'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY, 'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT, 'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE); Just tried my local copy, and it removes the button okay
scd Posted March 18, 2008 Author Posted March 18, 2008 Have you tried it as, $define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL, 'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME, 'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER, 'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE, 'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY, 'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT, 'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE); Just tried my local copy, and it removes the button okay Yeah, i've tried that. It's not a clean install, so there's something else getting in the way... thought there may have been another way around it. I can't see any other references to the button in the code, so i'm at a dead end. :'(
box25 Posted March 18, 2008 Posted March 18, 2008 Yeah, i've tried that. It's not a clean install, so there's something else getting in the way... thought there may have been another way around it. I can't see any other references to the button in the code, so i'm at a dead end. :'( Only other references are in includes/modules/product_listing.php around line 58 look for case 'PRODUCT_LIST_BUY_NOW': and same again around line 131 and then comment out the code, see if that does what you want
scd Posted March 19, 2008 Author Posted March 19, 2008 Only other references are in includes/modules/product_listing.php around line 58 look for case 'PRODUCT_LIST_BUY_NOW': and same again around line 131 and then comment out the code, see if that does what you want includes/modules/product_listing.php was the way to go.. but i had to delete this line instead.... <a href="'.tep_href_link("products_new.php","action=buy_now&products_id=".$p_id).'">'.tep_image_button('button_add_to_cart1.gif').'</a><br> Thanks for your help! :thumbsup:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.