|> Home > Documentation > Latest documentation > Interchange tags > assign|
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.
or similarly with positional parameters:
An assigned tag will return your value rather than calculating its own until you clear the assignment.
The assignment is persistent for the duration of the user's session, unless you clear it, and only affects the current user. You can clear all assignments using the clear parameter, or you can clear individual assignments by assigning an empty string (not zero) to the named type(s).
The following eliminates sales tax and sets shipping to 4.99 (regardless of weight and destination etc.):
This restores the usual sales tax calculator and eliminates handling charges:
The assignment affects only the value returned by a tag. Other behaviour, such as rounding and formatting for the local currency, will not be affected by the assignment; the display tag will take care of any currency formatting that is required.
Setting this to a true value clears all pending assignments (i.e. all assignable tags return to normal behaviour).
This option sets a total handling cost.
This parameter sets an override for the sales tax cost.
This parameter sets an override for the total shipping cost.
This parameter sets an override for the item subtotal cost (the value of all items excluding tax, handling and shipping etc.).