Akopia Akopia Services

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

Re: [mv] Returning to that last page



******    message to minivend-users from Mike Heins <mikeh@minivend.com>     ******

Quoting Chris Rapier (rapier@psc.edu):
> > It is in there somewhere, but we might as well put it in the archive again. :-)
> > 
> > I put this at the top of each of my flypages:
> > 
> > [set lastproduct][item-code][/set]
> > [set mv_put_session]Yes[/set]
> > 
> > and then in my basket page:
> > 
> > <A HREF="[area href="[scratch lastproduct]"]"><IMG SRC="prev.gif" BORDER=0
> > ALT="( PREV }"></A>
> > 
> > If you wanted someone to return to any other page you could [set
> > lastproduct] to any page name.
> 
> okay, I can see how this would work for flypages but I don't see how it
> would return you to the last 'results' page. However, I decided to be a
> cheap bastard and just use this:
> On the results page I 
> [set jumpback]-1[/set]
> 
> On the flypage (which you get to from the results page) I 
> [set jumpback]-2[/set]
> 
> On the basket page I have
> <INPUT TYPE=button VALUE="Continue Shopping"
> onClick="history.go([scratch jumpback])">
> 

Actually, I had already implemented the underpinnings of a URL
history feature in MV4. (For the source-readers out there, look for the
url_history routine in bin/minivend.) It is designed to solve the common
basket problem. You can either do:

    <A HREF="[history-scan
		exclude="__ORDER_STYLE/"
		default=browse]">Continue shopping</A>

to look for the first page not in the basket area, or

    <A HREF="[history-scan find="scan/" default=index]">Continue shopping</A>

to find the last scan/ page, or some combination of the above. Or you 
could do:

    [set Continue Shopping]
	[bounce href="[history-scan find='scan/' default=index]"]
    [/set]

It preserves your CGI variables, with the exception of session ID and
mv_credit_card_number and others in the Ignore settings, so it should
be just like re-submitting the page.

I was looking at putting the tag in (probably a UserTag) after your message,
but found a bug in the History save mechanism. Look for it in a future demo.

Best,
Mike
-- 
Internet Robotics, 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <mikeh@minivend.com>

Fast, reliable, cheap.  Pick two and we'll talk.  -- unknown
-
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: