I'm working on improving the functionality of my shopping cart.

One thing I've always hated about it (and I find this problem in other
shopping carts) is the "continue shopping" did take the user back to the
exact same previous page after adding an item to the cart ... continue
shopping links (including what I've done in the past) often take the user
back store front, not any interior pages the user might have been on.

Here's how I solve that problem.  I put this on store pages:

<cfif IsDefined('client.qString')>
        <cfset clearQString=DeleteClientVariable("qString")>
        <cfset client.qString="#CGI.QUERY_STRING#">
<cfelse>
        <cfset client.qString="#CGI.QUERY_STRING#">
</cfif>


Then on the shopping cart page, I my href with this:
index.cfm?#client.qString#


So far works well.

Of course, it only works if your dynamic pages are built through variables
passed in the query string.

H.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Owens
Internet Operations Coordinator
InsideVC.com/Ventura County Star
[EMAIL PROTECTED]
AIM: GoCatGo1956
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to