Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing prices in "what's new" box


webmaster2

Recommended Posts

Hi all,

 

I'm trying to remove all the prices but cant seem to find the code for the prices in the "whats new" box. I managed to remove the price in the product info (and the image) page.

Any help would be appreciated.

 

PS. Can anyone point me to any application or program similar to oscommerce but for content management or personal webpage design?

 

thanks

"Sometimes doing the right thing isn't doing the right thing"

Link to comment
Share on other sites

People can't post offsite links here, or recommend other products, but there is an open source site that lets you view about 100 different open source scripts based on PHP/MySQL.

 

Search google for "Open Soruce CMS" and its the first link :)

My advice comes in two flavors- Pick the one that won't offend you.

 

Hard and Cynical: How to Make a Horrible osCommerce Site

 

Warm and Fuzzy: How to Make an Awesome osCommerce Site

Link to comment
Share on other sites

/includes/boxes/whats_new.php

 

Line 40:								 'text' => '<a class="white" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br>' . $whats_new_price);

 

Replace with

 

Line 40:								 'text' => '<a class="white" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a>');

 

Hope this helps

Link to comment
Share on other sites

sorry, this is going off in a different direction, but would anyone be kind enough to tell me how to change the whats new price to display the model of the random product??

I've tried a few things but since im no programmer, i havnt been having too much success! hopefully someone here can help! thanks!

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 months later...

I've tried all these suggestions, and cleared my cache, but the prices keep showing up. This is in the What's New for XXX" box on the front page...

 

Any other suggestions?

 

Thanks,

Lauren

Link to comment
Share on other sites

so, you talking about the one in the middle of the page and not the one in the sidebars? memory escapes me, but I think that one is called products_new.php in modules or something similar.

Insert clever remark here

Link to comment
Share on other sites

in /includes/module/new_products.php find this code:

 

	$info_box_contents[$row][$col] = array('align' => 'center',
									   'params' => 'class="smallText" width="33%" valign="top"',
									   'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>' . currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id']))
									   );

 

and replace with this code:

 

	$info_box_contents[$row][$col] = array('align' => 'center',
									   'params' => 'class="smallText" width="33%" valign="top"',
									   'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a>');

 

PS: this section should not be used for support queries but for tips & tricks you want to to share with others - please use the general support thread for queries.

 

Many thanks, Terra

My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad)

and how to solve the invoice already paid error

General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email **

Link to comment
Share on other sites

YES!! That was it! Thanks so much Tera.

 

And as far as the thread.... it says "General Support" at the top of my page. I thought that's what this was. Please accept my apologies if I put this in the wrong one. I try to be careful about that. :)

 

Thanks,

Lauren

Link to comment
Share on other sites

And as far as the thread.... it says "General Support" at the top of my page. I thought that's what this was. Please accept my apologies if I put this in the wrong one. I try to be careful about that.

 

I think a moderator moved your post to the Support Section - could swear it was in Tips & Tricks before - but then again I've been doing long nights coding with lots of coffee, so don't have the firmest grasp on reality right now (bit like the matrix - the world disappears and all you start seeing is code) :D

 

Anyway, glad it's working! Terra

My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad)

and how to solve the invoice already paid error

General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email **

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...