MiniVend Akopia Services

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

Re: ECML



Where can I find additional information on the ECML spec?

Thanks!

Nick

mikeh@minivend.com wrote:

> Dear All,
>
> In case you want to be the first one on your block to support
> the newly-announced ECML, I have made up a little module.
> It takes the now-standard MiniVend checkout form names and
> maps them.
>
> To use, just copy the included ECML.pm to lib/Vend, and
> then put in your minivend.cfg:
>
> UserTag ecml Order name function
> UserTag ecml posNumber 2
> UserTag ecml addAttr
> UserTag ecml Routine <<EOR
> sub {
> #::logError("ecml raw: @_");
>         use Vend::ECML;
>         Vend::ECML::ecml(@_);
> }
> EOR
>
> In your checkout form, you put things like:
>
>         [ecml fname]
>         [ecml lname]
>         [ecml address]
>
> and of course:
>
>         [ecml name=country options="US=United States, CA=Canada"]
>
> which should automagically pull names out of country.asc. 8-)
>
> I have attached a MV3.14 checkout form with some of the fields
> put in.
>
> Somewhere in the form, you will see:
>
> <INPUT TYPE=hidden NAME=mv_click CHECKED VALUE="ECML_map">
> [set ECML_map]
> [ecml function=mapback]
> [/set]
>
> This maps the form inputs back into the old-style variables.
>
> Hope you enjoy leading the pack!
>
> --
> Mike Heins                          http://www.minivend.com/  ___
>                                     Internet Robotics        |_ _|____
>                                     131 Willow Lane, Floor 2  | ||  _ \
> It's a little-known fact            Oxford, OH  45056         | || |_) |
> that the Y1K problem caused         <mikeh@minivend.com>     |___|  _ <
> the Dark Ages. -- unknown           513.523.7621 FAX 7501        |_| \_\
>
>   ------------------------------------------------------------------------
>
>    ECML.pmName: ECML.pm
>           Type: Plain Text (text/plain)
>
>    checkout.htmlName: checkout.html
>                 Type: Hypertext Markup Language (text/html)



Search for: Match: Format: Sort by: