[ic] [calc] tags

Duane Hinkley duane at DownHomeWebDesign.com
Sun Feb 29 15:29:46 EST 2004


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

duane at dhwd.com
www.downhomewebdesign.com

----- Original Message ----- 
From: "Aftermarket Cellular" <wfiore at aftermarketcellular.com>
To: <interchange-users at icdevgroup.org>
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
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>




More information about the interchange-users mailing list