"Postfix User" <suppressed> 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
_/ _/ _/ _/ _/ _/ _/ _/_/ suppressed
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/
_______________________________________________
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.