Akopia Akopia Services

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

[mv] SHipping to AK and HI - a new can of worms



******    message to minivend-users from mediamob <mediamob@dnaco.net>     ******


Just when I thought I was done - when I was actually in the process of
shifting from the test to the live url - I remembered to check shipping to
Alaska and Hawaii. 

Drat.

Here's what I want to happen: If the state is Alaska or Hawaii, lookup
cost in UPS 2 Day Air table - else, use UPS Ground table. Sounds easy, no?

Having been here before, I did try a few things, including a search of the
mailing list archive. It contained this helpful code fragment from mike:


[if base=value name=state expr=" =~ /ak|hi/i"]
[then]
[set shipmode]callus[/set]
[/then]
[else]
[set shipmode]upsg[/set]
[/else]
[/if]

Which looked like it would do the trick, but on my page (based on the 3.11
ord/checkout) never worked, i.e. [value shipmode] always returned
empty. Since the above fragment was listed as a possibility for the
upcoming MV 3.0, i thought the syntax may have changed, and indeed, I
cannot find "base=" or "expr=" anywhere in the current docs for the [IF]
statement - but this bit of code came with the page, and works:

[if base=data
	term="country::shipmodes::[default country US]"
	op="=~" comp="[default mv_shipmode upsg]"]
[then]

So "base=data" means *something*, but I can't find out what. Anyone
know? Anyone know  where I should be looking? Is there a straightforward
way to do this?

Thanks,

Pat

-
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


Search for: Match: Format: Sort by: