Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Delete Price in What's New Box


The Rocking Porch

Recommended Posts

Posted

I like having the What's New Box in the Left Column, but do not want the price to show up.

(my prices are based on atributes)

I've tried deleting some of the code in /Oscommerce/catalog/includes/boxes/whats_new.php,

but apparently I am not doing it correctly.

 

Any help would be appreciated.

 

Thank you,

Melinda

www.therockingporch.com

Posted
I like having the What's New Box in the Left Column, but do not want the price to show up.

(my prices are based on atributes)

I've tried deleting some of the code in /Oscommerce/catalog/includes/boxes/whats_new.php,

but apparently I am not doing it correctly.

 

Any help would be appreciated.

 

Thank you,

Melinda

www.therockingporch.com

 

 

easy one...

 

in whats_new.php, around line 37:

$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);

 

change to:

$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*/);

 

you could probably be more elegant and eliminate the code that actually calculates the price, but this works fine.

 

rj

  • 6 months later...
Posted

DITTO HERE....GREAT EXPLANATION WITH RED TYPE...WORKS SUPER SO FAR....thanks!

Always give your best, never get discouraged!

Archived

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

×
×
  • Create New...