[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] shipping.asc and formulas (adder or at_least field)




I am trying to use formulas in fields such as at_least or adder and seem to be striking out. In the code below I am attempting to change the minimum shipping charge for the user based on the value of the merchandise they
are ordering.
That being if the item total is $8.99 or less, then the minimum shipping charge will be $4.99. Over $8.99 and it goes to $5.49. at_least [calc interpolate=1]$tmp1=([item-list][item_field price]*[item_quantity]+[/item-list]0);if($tmp1>8.99){$tmp2=5.49}else{$tmp2=4.99};return $tmp2;[/calc]

does it make any difference to change: [item_field price] to
[item-field price]  and [item_quantity]  to  [item-quantity]
(so _  to -) ...
If that doesn't make a difference you could try to set $tmp1 to 9.99 so to see if it at least catches the at_least at all ...

I was hoping you spotting the "_" vs. "-" would resolve the problem, but it didn't.

I put the following line of code in at your good suggestion and unfortunately, it appears
to be ignored as well.

at_least                [calc interpolate=1]$tmp1=5.49;return $tmp1;[/calc]

Randy

_______________________________________________
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.