Bill, This little chuck of code will calculate the difference and display it: [currency][perl interpolate=1 ] my $price = "[loop-price]"; my $msrp = "[loop-field price]"; $out = $price - $msrp; return $out; [/perl][/currency] Sincerely, Duane Hinkley Down Home Web Design, Inc. 9494 W. Fairview Ave., Suite C Boise, Idaho 83704 (208) 424-0572 Fax(208) 587-0738 suppressed www.downhomewebdesign.com ----- Original Message ----- From: "Aftermarket Cellular" <suppressed> To: <suppressed> Sent: Saturday, February 28, 2004 9:00 AM Subject: [ic] [calc] tags > > Hi, > > I have the following code in the promo component of my store. I would like > to add a line "You Save:" with the difference between these two prices. I > tried simply subtracting these fields between calc tags, but had no luck. > Could someone please help me with this, it seems like it should be simple. I > am using 4.8.6 > > <tr> > <td align="center" colspan="2"> > <b>Sale Price: [loop-price]</b> > </td> > </tr> > <tr> > <td align="center" colspan="2"> > <i>MSRP: $[loop-field price]</i> > </td> > </tr> > > Thank you > -Bill > > > > _______________________________________________ > interchange-users mailing list > suppressed > http://www.icdevgroup.org/mailman/listinfo/interchange-users > _______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.