duncwilson Posted April 17, 2007 Posted April 17, 2007 Hi there, I really hope someone can help and I don't think it's too tricky (although I know bugger all about php) In the specials section my prices are displaying without tax, I assume I have to do something to the following code to change the Price: and New Price: to include tax ? <tr><td height="29" valign="bottom"><span class="tx4"><s>Price:</s></span> <span class="tx3"><s><?=$currencies->display_price($specials['products_price'],'')?></s></span><br> <span class="tx5">New price:</span> <span class="tx6"><?=$currencies->display_price($specials['specials_new_products_price'],'')?></span></td></tr> Any help would be much appreciated as my wife is relying on me for this and has threatened to sleep in the spare room until it is sorted !!
Guest Posted March 5, 2008 Posted March 5, 2008 Hi, Here is what I did. In the specials.php file change the line: $p_price = '<span class="productSpecialPrice">'.$currencies->display_price($specials['specials_new_products_price'],'').'</span> <s>'.$currencies->display_price($specials['products_price'], tep_get_tax_rate($specials['products_tax_class_id'])).'</s>'; to $p_price = '<span class="productSpecialPrice">'.$currencies->display_price($specials['specials_new_products_price'], tep_get_tax_rate($specials['products_tax_class_id'])).'</span> <s>'.$currencies->display_price($specials['products_price'], tep_get_tax_rate($specials['products_tax_class_id'])).'</s>'; This adds to the tax to the 'new price'. Hope this helps. Karl.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.