[prev in list] [next in list] [prev in thread] [next in thread]
List: interchange-users
Subject: Re[2]: [ic] Add item to cart and stay on flypage / results-page
From: Olaf Kolling <kolling () w3welt ! de>
Date: 2005-01-30 13:25:20
Message-ID: 1683749756.20050130142520 () w3welt ! de
[Download RAW message or body]
Hello Philipp,
thanks for your suggestions but your code didn't work.
>> I need a way to add items to the cart and then stay on the flypage or
>> results-list instead of displaying the basket afterwards.
PT> [seti last_page][history-scan exclude=nothing count=0][/seti]
PT> [set bounce_back]
PT> [bounce href="[scratch last_page]"]
PT> [/set]
PT> and in your form this line :
PT> <input type=hidden name=mv_click value="bounce_back">
With some more code snipets from the archives and trying i found a
solution. Now i bounce the users back from the basket to where they
came from controlled by a cgi-variable. I also tried a solution With
mv_nextpage but always got an error telling me the page doesn't
exist.
Here's my working code:
An additional hidden form-field on all product flypages or result pages.
<input type=hidden name=put value="1">
Somewhere at the top of basket.html
[if cgi put]
[bounce href='[history-scan exclude="^/ord|^/multi/|^/process" default=index]']
[/if]
If one calls basket directly nothing happens because the cgi-variable
"put" is not defined.
If the basket is displayed because a user has put a new item into it
the variable has been set on the previous page and the bounce gets
executed.
Bye Olaf
--
********************************************************************
W³Welt Web-Entwicklung
--------------------------------------------------------------------
Olaf Kolling eMail: kolling w3welt.de
Mörikestraße 67 Tel.: +49 711 96666-200
70199 Stuttgart Fax: +49 711 96666-201
********************************************************************
_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic