MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

RE: [mv] set shipmodes - how to make it work?



Boy. I always ask the tough ones, eh?

Well, anyhow...I tried something a little different, which *almost* works, but
not quite (the drop-down menu defaults to upsg after the page updates):

================================================================================

[if scratch restricted_shipping]

        <SELECT MV.OPTION="mv_shipmode"
                onChange="this.form.submit()"
                NAME="mv_shipmode">
[loop arg="motor"]
    <OPTION VALUE="[loop-code]"> [shipping-desc [loop-code]] [shipping [loop-cod
e]]
[/loop]
        </SELECT>
[else]
        <SELECT MV.OPTION="mv_shipmode"
                onChange="this.form.submit()"
                NAME="mv_shipmode">
[loop arg="upsg"]
    <OPTION VALUE="[loop-code]"> [shipping-desc [loop-code]] [shipping [loop-cod
e]]
[/loop]
        </SELECT>
[/else]
[/if]

================================================================================

So, how about it? Is anyone doing anything like this, where you are only
allowing certain shipping modes, based on a flag for certain products? Any
method to accomplish this would be helpful, even if it is quite different from
what I'm doing above (and below).


On 14-Oct-99 Brian Knotts wrote:
> ******    message to minivend-users from Brian Knotts <bknotts@europa.com>   
> ******
> 
> After reading through quite a bit of the mailing list archive, I determined
> that the way to limit the display of available shipping modes would be
> something like:
> 
> ==============================================================================
> ==
> 
> [set restricted_shipping][/set]
> [item-list]
>         [if base=data term="products::overweight::[item-code]" op="=~"
> comp="1"]
>         [set restricted_shipping]1[/set]
>         [/if]
> [/item-list]
> 
> [if scratch restricted_shipping]
> [set shipmodes]motor[/set]
> [else]
> [set shipmodes]upsg upsb upsr[/set]
> [/else]
> [/if]
> 
> ==============================================================================
> ==
> 
> However, this has no effect. Do I need to change the SELECT, which is
> currently:
> 
> ==============================================================================
> ==
> 
>         <SELECT MV=loop
>                 MV.SEARCH="fi=country.asc/se=[default country
> US]/sf=selector/rf=shipmodes"
>                 MV.OPTION="mv_shipmode"
>                 onChange="this.form.submit()"
>                 NAME="mv_shipmode">
> 
>     <OPTION VALUE="[loop-code]"> [shipping-desc [loop-code]] [shipping
> [loop-code]]
>         </SELECT>
> 
> ==============================================================================
> ==
> 
> ?
> 
> Any help would be greatly appreciated.
> 
> --
> ------------------------------------------------------------------------
> Brian Knotts                                          bknotts@europa.com
> Webmaster/Developer/Portland SysAdmin                     (503) 222-9508
> Europa/NWLink                                        Fax: (503) 796-9134
> 
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to
> Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list

--
-----------------------------------------------------------------------------
Brian Knotts                                               bknotts@slappy.org



Search for: Match: Format: Sort by: