[ic] total-cost and assign
Kevin Walsh
kevin at cursor.biz
Fri May 19 17:35:46 EDT 2006
"Postfix User" <postfixjob at gmail.com> wrote:
> I am having a problem with the [assign] tag not updating the
> [total-cost] tag after assignment. Here is what I did:
>
> I wrote the following (in the includes/shopping_cart file):
>
> [assign shipping=""]
> [seti ship_total][subtotal] * 0.5[/seti]
> [assign shipping="[scratch ship_total]"]
>
> And then I wrote (in the same file):
>
> [shipping]
> [total-cost]
>
> When it outputs, it displays the correct shipping cost however it does
> not update the [total-cost] tag with the newly assigned shipping cost.
>
Give mv_shipmode a value before you start:
[value name=mv_shipmode set=1 hide=1]
[assign shipping="[calc][subtotal noformat=1] * 0.5[/calc]"]
...
[shipping]
[total-cost]
Similarly, mv_handling must have a value before assignments to [handling]
will be effective.
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin at cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
More information about the interchange-users
mailing list