Loubee Posted January 28, 2009 Posted January 28, 2009 How do I disable the "product_info.php"? I want to disable the ability to link to a product information page from the catalog page. Any advice would be much appreciated. Tks.
shooter-boy Posted January 28, 2009 Posted January 28, 2009 You can simply change the links in includes/modules/product_listing.php... but i must ask why...? Oh, and you would need to modify any pages that link back to them such as shopping_cart.php, checkout_confirmation.php, the order history pages, and any new/special/review pages and boxes (there's probably more, but they spring to mind). You will also need to disable linking from the search results too. Keep in mind that if you have attributes on any products, they must select those attributes from the product_info.php page in order to add to cart. Rob Rob Bell - Inspired Graphix Customising osCommerce in Australia, and the world! View my profile for web and email links. I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture. However viewing my profile may provide links to my website or something like that which you may find useful.
Loubee Posted February 1, 2009 Author Posted February 1, 2009 I'm creating an affiliate catalog where the product info is stored on another person's website. I've found the code in the product_listing.php, but I can't get rid of the link without deleting the image. I don't know what I am doing. I just want to get rid of the link and not the image. Any help would be appreciated. Tks.
Loubee Posted February 1, 2009 Author Posted February 1, 2009 Yay, I got it. This is what I did. I removed what's bolded in the ".../modules/product_listing.php" case 'PRODUCT_LIST_IMAGE': $lc_align = 'center'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; } I didn't have to do anything to the search results, the link was disabled there as well. There is no need to disable the text links (product name) that link to the product info page because in admin I just enter the product name info with "<a href" around it.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.