Gossamer Forum
Home : Products : DBMan : Installation :

Listing how much you save

Quote Reply
Listing how much you save
Hi,

JPDeni, A while back you really helped me with the 25% off the original price MOD. I'm afraid I need your help again.

I saw on the site which you have created www.vitaminprice.com that it will actually list how much they are saving. I would really appreciate it if you tell me how this was done.

------------------
JFrost







[This message has been edited by JFrost (edited March 03, 1999).]
Quote Reply
Re: Listing how much you save In reply to
Okay. Well, you have the line

Code:
$OurPrice = sprintf("%.2f",$rec{'List Price'} * .75);

So in order to get the savings, you would have

Code:
$USave = sprintf("%.2f",$rec{'List Price'} - $OurPrice);

Then use the $USave variable wherever you want to print the savings.

BTW, I'm afraid I didn't have anything to do with the site that you mentioned. Smile

--------------------
JPD

[This message has been edited by JPDeni (edited March 04, 1999).]
Quote Reply
Re: Listing how much you save In reply to
Hi,


Thank you very much for your great help. I haven't tried it yet, but I will as soon as I get back from work

------------------
JFrost