Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Turning off Prices on the New Products page


blainehilton

Recommended Posts

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

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

  • 5 months later...
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...