[ic] hints on using the [assign] tag

Guido Sohne interchange-users@interchange.redhat.com
Thu Sep 20 21:22:00 2001


When overriding a tag with assign, such as

  [assign shipping="45.67"]

other core tags such as [shipping] and [total-cost]
are affected. The documentation warns about this.

In the case of shipping, using [assign shipping="[delivery]"]
more than one time in a catalog, where [delivery] is a tag that
itself calls sub tag_shipping (the code executed when you use the
[shipping] tag.)

[delivery] returns a wrong result if [delivery] expected 
tag_shipping to return the result of its normal calculation 
instead of the last supplied value. 

In cases like this, just use a

  [assign clear=1]

before 

  [assign shipping="[delivery]"]

__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/