blainehilton Posted July 7, 2003 Share Posted July 7, 2003 I am trying to modify OSC so that it will not display any prices in the new products page. I have been able to remove the price display from other areas of the store with out a problem, but can not do it for this page. -- Any ideas would be highly appreciated. TIA -- Link to comment Share on other sites More sharing options...
blainehilton Posted July 7, 2003 Author Share Posted July 7, 2003 Sorry about this post. I really knew how to do it, but had the file name flipped around and thus was not seeing any change! For others that may need this info you need to go to /shop/includes/languages/products_new.php and change the line: define('TEXT_PRICE', 'Price:'); to define('TEXT_PRICE', ''); and then you need to go to /shop/includes/modules/products-new.php and change the line from: <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new_array[$i]['id'], 'NONSSL') . '"><b><u>' . $products_new_array[$i]['name'] . '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . $products_new_array[$i]['date_added'] . '<br>' . TEXT_MANUFACTURER . ' ' . $products_new_array[$i]['manufacturer'] . '<br><br>' . TEXT_PRICE . ' ' . $products_price; ?> to <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new_array[$i]['id'], 'NONSSL') . '"><b><u>' . $products_new_array[$i]['name'] . '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . $products_new_array[$i]['date_added'] . '<br>' . TEXT_MANUFACTURER . ' ' . $products_new_array[$i]['manufacturer'] . '<br><br>' . TEXT_PRICE . ' '; ?> A better way in retrospect would perhaps be to delete TEXT_Price too and not change the language file at all. Hope this helps someone else now. -- Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2004 Share Posted January 6, 2004 and then you need to go to /shop/includes/modules/products-new.php and change the line from: I think the file is actually /catalog/products_new.php at least in ms2, the file you reference is actually new_products.php and that is not similar to the code you displayed. But that code is located in /catalog/products_new.php and your code replacement worked....thanks mucho Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.