[ic] [item-subtotal] alternative approach

Mike Heins interchange-users@lists.akopia.com
Thu May 31 08:44:00 2001


Quoting Guido Sohne (caught_one@yahoo.com):
> You could also write your own user tag that does your subtotal calculations.
> That way Interchange functionality is 100% untouched - an issue that may
> get interesting with multiple stores running on the same interchange ...
> 

In the latest 4.7.x, I yielded to temptation and added an [assign ....] tag.

  assign

    Allows you to assign numeric values to preempt calculation of one or
    more of the following tags:

    *   [handling], [salestax], [shipping], and [subtotal]

    The assignment is persistent within a user's session until you clear it,
    an assigned tag will return your value instead of calculating a value.

    Warning - please be sure you understand the dependencies within the
    pricing system before using the assign tag.

[snip rest of documentation in new and excellent tag reference]

-- 
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH  45013
phone +1.513.523.7621      <mheins@redhat.com>

Experience is what allows you to recognize a mistake the second
time you make it. -- unknown