VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497
Live Chat

Customers are losing the contents of their cart and are getting an error when checking out.

Customers are losing the contents of their cart and are getting an error when checking out.

Some customers may be complaining that they are losing the contents of their shopping carts when trying to check out or are getting "Order has been processed" errors. This is generally caused by the url changing when checking out. This can be caused by something as simple as the "www" being left out of the url.

This can be altered at the server but most hosts will not do this so we have listed below a work around for this problem if you are experiencing this issue.

The below code changes add the xmysite domain to all add to cart links. This may solve the session loss problem some customers have been getting when using http://domain and http://www.domain to access their store.

Log into your admin and in the online Set-Up search for xmysite in the search box.

Set xmysite to http://www.yoursite.com in the online Set-Up.

Make the following line changes. If the code does not match the line then locate the nearest match as the code may be on different lines depending on your version.

Around line 38 of shopproductformat.asp:
response.write "form action=""shopaddtocart.asp"" method=""POST"">"

to:

response.write "form action=""" & getconfig("xmysite") & "/shopaddtocart.asp"" method=""POST"">"

Around line 28 of shopproductformat_template.asp from:
response.write "form action=""shopaddtocart.asp"" method=""POST"">"

to:

response.write "form action=""" & getconfig("xmysite") & "/shopaddtocart.asp"" method=""POST"">"

Around line 601 of shopproductsubs.asp:
OPTION VALUE="shopaddtocart.asp?productid=%= rs("catalogid") %>&quantity=1"> %= rs("cname") %> /option>

to:

OPTION VALUE="%=getconfig("xmysite")%>/shopaddtocart.asp?productid=%= rs("catalogid") %>&quantity=1"> %= rs("cname") %> /option>

Around line 135 of shopdisplayproducts.asp:
Response.Write("form name=form1 method=Post action=""shopproductselect.asp"">")

to:

Response.Write "form name=form1 method=Post action=""" & getconfig("xmysite") & "/shopproductselect.asp"">"

Around line 405 of shopfileio.asp:
Handle_FormStart "User",parsearray, "shopaddtocart.asp"

to:

Handle_FormStart "User",parsearray, getconfig("xmysite") & "/shopaddtocart.asp"

Around line 609 of shopfileio.asp:
Handle_FormStart ivalue,parsearray,"shopaddtocart.asp"

to:

Handle_FormStart ivalue,parsearray,getconfig("xmysite") & "/shopaddtocart.asp"

Around line 838 of shopfileio.asp:
newaction="shopaddtocart.asp"

to:

newaction=getconfig("xmysite") & "/shopaddtocart.asp"

Around line 649 of shopfileio.asp:
Handle_FormStart ivalue, "shopproductselect.asp"

to:

Handle_FormStart ivalue, getconfig("xmysite") & "/shopproductselect.asp"

MAKE SURE YOU BACK UP THE FILES BEFORE ALTERING THEM IN CASE YOU MAKE AN ERROR!


Times Viewed:
5335
Added By:
Cam Flanigan
Date Created:
5/4/2006
Last Updated:
7/6/2006
Back Search other topics Submit a Ticket