[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Take out Shipping
At 06:16 PM 12/12/2002 -0800, you wrote:
>Hi people, long time no see :)
>
>I am trying to make the shipping component a little bit more intelligent,
>and trying to make it detect if a shipping method is returning 0 shipping,
>and then not display that shipping method, however no matter what I do, I
>cannot make the [if] tag determine how to read [shipping [loop-code]] and
>react to it.
>
>This is my code,
>
>[loop
> option=mv_shipmode
> list=|[data table=country key='[default country US]'
> col=shipmodes]|
> ]
> [seti shiptot][shipping [loop-code]][/seti][scratch shiptot]
> [if scratch shiptot ne "$0.00"]<OPTION VALUE="[loop-code]"
>[selected mv_shipmode [loop-code]]>[shipping-desc
> [loop-code]]: [scratch shiptot][/if][seti shiptot][/seti][/loop]
>
>It runs, and it always displays all the shipping methods no matter or not if
>they have zero shipping.
>
>Can anyone tell me how to actually LOOK at what [shipping [loop-code]] is,
>and how to analyze it?
>Thanks :)
>
>-Brendan
The [shipping ...] tag does this for you automatically; recent releases of
the foundation demo use this on the checkout page:
<SELECT NAME=mv_shipmode>
[shipping
label=1
mode=|[data table=country key='[default country US]'
col=shipmodes]|
]
</SELECT>
- Ed L.
_______________________________________________________________
«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»)
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
New Media E.M.S. Technology Solutions for Business
463 Main St., Suite D eCommerce | Consulting | Hosting
Placerville, CA 95667 edl@newmediaems.com
(530) 622-9421 http://www.newmediaems.com
(866) 519-4680 Toll-Free (530) 622-9426 Fax
_______________________________________________________________
«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»)
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯