[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] basket & refresh
At 12:13 PM 05/17/2001 +0200, you wrote:
>Javier Martin wrote:
>[DEL]
> > 2. If I refresh the basket page, the last item adds and adds again to the
> > cart, how do I avoid that?
>
>Have you
>
>SeparateItems Yes
>
>in your catalog.cfg? Try
>
>SeparateItems No
>
>Joachim
>
Then the qty will increase each time you refresh, instead of adding another
line item. The reason this happens is that the basket page is displayed as
the direct result of an (order) form submission. Each time you
refresh/reload the page, you are submitting the form again - thus another
unit goes in the basket.
One way around this is to make a page like basket_bounce.html, and make
that your default basket page (in catalog.cfg)
SpecialPage order ord/basket_bounce.html
The contents of basket_bounce.html would be:
[tag op=header interpolate=1]
Status: 302 moved
Content-type: text/html
Location: [area ord/basket]
[/tag][set mv_no_cache]1[/set]
...the redirect separates the form submission from the display of the
basket page, so refreshing it will not force duplicates into the
basket. To my memory I have only done this in MV3 catalogs but it should
work in Interchange, as it is more of a CGI issue than specifically IC-related.
- Ed L.
===============================================================
New Media E.M.S. Software Solutions for Business
463 Main St., Suite D eCommerce | Consulting | Hosting
Placerville, CA 95667 edl@newmediaems.com
(530) 622-9421 http://www.newmediaems.com
(866) 519-4680 Toll-Free (530) 622-9426 Fax
===============================================================
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users