Changes to product pages to display discount

Committee or Team: 
Web Design
Component: 
theme tpl files
Version: 
Drupal 6 Test
Date: 
01/18/2011
Author(s): 
wroehrig
Details: 
I created a node-product.tpl.php template in the trails2_zen theme using the code from node-books.tpl.php and eliminated the individual template files for the "normal" product types (books, maps, logogoods, combos) as they were identical. I added php code in the node-product.tpl.php that will call a function in the nynj_custom2 module that gets the appropriate discount(s) and returns a discounted price. That price is used in the html output for the product if it is available. If no discount is found, the normal price is used. Anonymous user skips this processing and uses the normal price.
Hours: 
2hours xx.x
Groups: