Akopia Akopia Services

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

Re: [mv] Automatically add product to basket



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

Hi Russ -

One way is to use order groups, which was broken in earlier releases of MV 
4.0x, but I understand it has been fixed (this is from the docs):

<FORM ACTION="[process-target]" METHOD=POST>
<INPUT TYPE=hidden NAME=mv_todo ACTION=refresh>
<INPUT TYPE=hidden NAME=mv_order_group VALUE="1">
<INPUT TYPE=hidden NAME=mv_order_item VALUE="00-0011">
<INPUT TYPE=hidden NAME=mv_order_item VALUE="00-0011a">
<INPUT TYPE=submit VALUE="Order the Mona Lisa with frame">
</FORM>

You could make a field in the products db with a name like "auto_add", and 
fill it with a comma-delimited list of items to be ordered with the primary 
item, so that you could build the order group on the fly:

<FORM ACTION="[process-target]" METHOD=POST>
<INPUT TYPE=hidden NAME=mv_todo ACTION=refresh>
[if-field auto_add]
         <INPUT TYPE=hidden NAME=mv_order_group VALUE="1">
         <INPUT TYPE=hidden NAME=mv_order_item VALUE="[item-code]">
         [loop arg="[item-field auto_add]"]
                 <INPUT TYPE=hidden NAME=mv_order_item VALUE="[loop-code]">
         [/loop]
[else]
         <INPUT TYPE=hidden NAME=mv_order_item VALUE="[item-code]">
[/else]
[/if-field]
         <INPUT TYPE=submit VALUE="Order the Mona Lisa with frame">
</FORM>

The above code is untested, but it should be enough to give you the idea.

Good luck!

- Ed L.


At 03:02 PM 5/1/00 -0700, you wrote:
>Hello,
>
>I need to be able to automatically add a product to a users basket when 
>they order one specific other item.
>
>i.e. :
>
>if ordered PRODUCTCODE1, then add PRODUCTCODE2.
>
>
>any suggestions?
>
>Thank you,
>
>
>Russ Mann
>
>Systems Administrator/
>Senior Programmer
>Koinonia House, Inc.
><http://www.khouse.org/>http://www.khouse.org
><mailto:tech@khouse.org>tech@khouse.org
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| New Media E.M.S.		Software Solutions for Business |
| 12831 Blanco Ct.		Consulting			|
| Poway, CA  92064  U.S.A.	Custom Programming		|
| 858-486-6508			Internet and eCommerce		|
| 630-604-4265 eFax						|
| newmedia@newmediaems.com					|
| http://www.newmediaems.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


Search for: Match: Format: Sort by: