[ic] restricting orders to US only...
Mike Heins
mike at perusion.com
Wed Feb 23 19:09:19 EST 2005
Quoting Steve (icdev at mrlock.com):
> >
> > ah! I hadn't considered that. We're using IC 5.2.
> >
> > --
> > Mark
>
>
> Hello Mark,
>
> My system is on 4.8.x so I'm not sure if the checkout routine has changed,
> but I used the following code close to where the checkout page displays the
> S&H amount:
>
> [seti mv_sh][shipping noformat=1][/seti]
>
>
> [comment]
> The following code will not allow the place order button to display
> if shipping is less that 1
> [/comment]
>
> [if type=explicit compare="[calc][scratch mv_sh] < 1[/calc]"]
I think that would work, but;
[if scratch mv_sh < 1]
makes more sense. It is certainly faster and more efficient.
Though you needn't worry about such constructs in a one-shot execution
context, putting something like that "if explicit" inside a loop would
*destroy* your performance.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295 tollfree 800-949-1889 <mike at perusion.com>
Opportunity is missed by most people because it is dressed in
overalls and looks like work. -- Thomas Edison
More information about the interchange-users
mailing list