display price for sale items in cart
I am trying to display price of the items in the shopping cart differently if they are on sale. Instead of just displaying the sale price, I want to display the original price, with a line through it (<s> tag) and then the sale price.
I was unable to figgure out how to do it in the wizard using abs(), so I edited the code in the cart include file like this too make a display price
if($itmObj->OnSale=='Y'){
$itmObj->DisplayPrice = '<s>$'.number_format($itmObj->Price,2,'.',',').'</s>'.' $'.number_format($itmObj->SalePrice,2,'.',',');//t
}else{
$itmObj->DisplayPrice = '$'. number_format($itmObj->Price,2,'.',',');//t
}
This works fine, but now I cannot edit the cart object using the wizard anymore.
Is there a way to get this functionality using the wizard? ie make a column called DisplayPrice that works like this (perhaps using the abs() discussed in the tutorials.
If you had any help, I would greatly appreciate it!
Thanks
Tom