Akopia Akopia Services

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

[mv] What I did on my summer vacation



******    message to minivend-users from "Christopher Thompson" <ct@arborinternet.com>     ******

I just solved a problem and thought I would share what I learned and
perhaps someone can tell me if there is a better solution. This is MV3 so
may be different in MV4.

A client wanted a range search, but only a single selection on the form. I
made the selection have values like "0-99", "100-199"..."999-0". On the
results page I split the value and assign min and max to two vars and used
[search-region].

The problem was that if a value was 0 the range search would fail because
the value was null (i.e. .../rm=/rx=/...). So after trying several things,
I added a text 0 before the [value ...] and it works fine.

[search-region arg="
...
rl=price
rm=0[value v_pricemin]
   ^
rx=0[value v_pricemax]
   ^
"]

Perhaps there is an arg for value that would fix this, or another tag I
could surround the [value ...] with, but this works.

-
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: