Akopia Akopia Services

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

Re: Re: [mv] url not found when using mv_orderpage to display search page



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

What you might want to try is to read the item code for the item just 
ordered, and use it in an in-page search on your orderpage.  The big 
question is whether minivend will remember the last item ordered in 
mv_order_item from page to page - otherwise you may have to capture the 
item code in another hidden form variable. I am going to guess it won't, so 
in the first order form you would want to include a tag like:

<input type=hidden name=last_item_ordered value="[item-code]">

You will want to use [process-target] as you form action.  Then you could 
set mv_orderpage to some other page (call it next_page), and in next_page do:

<form action="[process-target]" method=post>
...
...
...
[search-region arg="
         se=[value last_item_ordered]
         sf=(whatever)"]
[search-list]
<input type=hidden name=mv_order_item value="[item-code]">
[/search-list]
</form>

This is untested, but it should be workable once debugged.  If the 
item-code of the last item is not the actual search spec, then you would 
have to retrieve the necessary data column from the database, like

se=[data products the_column_needed [value last_item_ordered]]
or
se=[data base=products field=the_column_needed key=[value last_item_ordered]]

Good Luck

- Ed L.

At 08:35 AM 5/6/00 +1000, you wrote:
>We have tried a few ways but cannot get it to work. We are trying to 
>search a product and by selecting a drop down list and pushing a button 
>put the item in the cart and produce a new search for the next item. This 
>is a step by step sale process. The code we have tried is below.... the 
>examples order the first item but produce a page not found error on the 
>second search.
>Any ideas?
>
>  <form name="orderform" action="http://xyz.com/cgi-bin/shop/process.html"; 
> method="post">
>  <input type="hidden" name="mv_todo" value="refresh">
>  <input type="hidden" name="mv_order_item" value="01">
>  <input type="hidden" name="mv_separate_items" value="1">
>
>    <table border="0" cellspacing="5" cellpadding="0" align="center">
>    <tr valign="middle">
>       <td align="right" width="50%"><br>
>      <select name="mv_orderpage">
>        <option value="se=Telecomunications&os=0&su=0&cs=0&ml=3">Trade 
> Associations</option>
>        <option 
> value="search.html?se=Telecomunications&os=0&su=0&cs=0&ml=3">Travel 
> Services</option>
>        <option 
> value="http://xyz.com/cgi-bin/scan/se=Telecomunications/os=0/su=0/cs=0/ml=3";>View 
> All</option>
>        <option value="scan/se=Telecomunications/os=0/su=0/cs=0/ml=3" 
> selected>Select Your Industry</option>
>      </select>
>       </td>
>       <td align="left" width="50%"><br>
>      <input type="image" src="/getasite/images/continue.gif" width="84" 
> height="48" border="0"></td>
>      </tr>
>     <tr>
>       <td align="left" colspan="2"><img 
> src="/getasite/images/dont_see.gif" width="242" height="34"></td>
>    </tr>
>   </table>
>  </form>
>
>
> >******    message to minivend-users from Ed LaFrance 
> <edlafrance@printexusa.com>     ******
> >
> >At 01:31 PM 5/4/00 +1000, you wrote:
> >>******    message to minivend-users from "Geoff"
> >><minivend@hq.com.au>     ******
> >>
> >>We are trying to get search result as the returning page using 
> mv_orderpage.
> >>This works fine for any page that exists but a no found error is produced
> >>when we try to use the search page as the mv_orderpage value.
> >>
> >>Example of code:
> >>  <form name="orderform" action="[process-target]" method="post">
> >>  <input type="hidden" name="mv_todo" value="refresh">
> >>  <input type="hidden" name="mv_order_item" value="[item-code]">
> >>  <input type="hidden" name="mv_separate_items" value="1">
> >>
> >>  <input type="hidden" name="mv_orderpage"
> >>value="scan/se=package/os=0/su=0/cs=0/ml=3">
> >>
> >>Any ideas?
> >
> >I'm not sure what you are trying to accomplish here, but I looked at the
> >docs and I can't see where passing a search specification to mv_orderpage
> >is supported, so I don't think your approach is going to work.
> >
> >- Ed L.
> >Printex Marking Technologies
> >12113 Kirkham Rd.
> >Poway, CA  92064  U.S.A.
> >858-513-2418
> >800-982-1928
> >858-513-2419 FAX
> >http://www.printexusa.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 |
| 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: