Akopia Akopia Services

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

Re: [mv] how I can dynamically generate "Routes" for each item?



******    message to minivend-users from Ed LaFrance <newmedia@sd.znet.com>     ******

Mark -

It is not entirely clear from your message, but are you trying to
dynamically split an order into several emails, one to each vendor(s) of
the product(s) in the order, at the moment the order is completed by the
customer?

If so, perhaps some logic on the report.html page would do it.  I am
still using mvend 3.14, so I don't know how much things have changed,
but since report.html generates the __ORDERS TO__ email, maybe you could
do some conditional logic there to acheive your goal.  I know it is just
a vague idea but maybe it will turn a light on?

- Ed L.

Mark Stosberg wrote:
> 
> ******    message to minivend-users from Mark Stosberg <mark@summersault.com>     ******
> 
> Hello,
> 
>   I'm working with MV4 and am setting up a marketplace system where many
> sellers can sign up. When someone shops at the site they can put items
> from many different vendors in one cart. Because the number of vendors
> is expected to change frequently, and also be potentionally large, it's
> not feasible to maintain their Routing information in catalog.cfg. So
> I'm interested in a system where I dynamically generate the Routes for
> each item at checkout (or rather, 1 route for each distinct vendor
> represented in the basket. :). I tried out two ideas for modifying
> catalog.cfg, but neither of them worked. Both relied on the idea of
> grabbing some information from the environment as needed, which I'm not
> sure I can do.
> 
> <snip>
> ParseVariables Yes
>  [sql  type=list sql="select email, last_name from seller where id =
> [scratch seller_id]"]
>  Variable    SELLER_EMAIL        [sql-param email]
>  Variable           SELLER_LAST_NAME [sql-param last_name]
>  [/sql]
> 
> Route    SELLER email   _SELLER_EMAIL__
> 
> Route   SELLER  email   [data base="seller" field="email" key="[scratch seller_id]"]
> </snip>
> 
> So that approach didn't seem to work.
> 
> Another idea I had was to change configurations through custom perl,
> possibly setting variables with a syntax like:
> 
>    $Config->{key} = $value;
> 
> BUT, it's not all clear how to do this with Route, because there are 4
> different parts to each data element, so how should I arrange this as a
> name = value pair? Or is there an appropriate hash I can adjust? If
> there's some documentation I missed on this, a pointer is appreciated.
> 
> Thanks for help on this!
> 
>    -mark
> 
>   <<-------------------------------------------------------------->>
> personal website                <    Summersault Website Design
>    http://mark.stosberg.com/     >       http://www.summersault.com/
> -
> 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

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
New Media E.M.S. - Software Solutions For Business and General Use
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The Ultimate Free Software Collection, Vol 1
Over 260 fully-functional programs and utilities, only $19.95!
http://www.newmediaems.com/ufsc1.html

^^^^^^^^^^^^^^^^^^^^^^
Looking for Point of Sale software? XSell POS!
http://www.newmediaems.com/Xsell_beta_signup.htm

^^^^^^^^^^^^^^^^^^^^^^
Blend Manager -
Powerful software for formulators and blenders of inks, paints,
dyes, pigments, and more!
http://www.newmediaems.com/bmr_dwnload.htm
-
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: