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

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Problems and bugs
 Problem in firefox.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

eric
Starting Member

5 Posts

Posted - February 03 2005 :  11:25:04  Show Profile  Reply with Quote
Morning everyone.

I have finally been able to track down a problem I was having with vpasp.

What was happening was people were not able to place items in their shopping cart, they would select the quanity and then hit Order. nothing would happen.

I was finally able to get a customer who was having problems (whats the little colorie thing in the right of your browser look like? ok your running firefox) and found out they are running firefox 1.0.

I also found out that this was in their address bar:
shoperror.asp?msg=Item+not+found+in+database+id%3D10%2C+10%3Cbr%3E

This error is caused when an item "dosent exist" in the database. Well it does, and works fine in IE and netscape.

I did a response on the form filed that was passing the productID (after trying to make the HTML 4.0 complient, com'on people its 2005!) and was able to find this out.

IE returns 10.
firefox returns 10, 10.

Im going to go through the code now, but I can assume that firefox is assuming that another input field was not closed inside of a form and that their are 2 input fileds of the same name (which when you use 2 form fileds of the same name, the input fields become an array.

I will try to come up with a solution to this, but has anyone else expierenced this before?

-Eric.
[email protected]

eric
Starting Member

5 Posts

Posted - February 03 2005 :  11:32:00  Show Profile  Reply with Quote
update.

I did a search in the code (im pretty sure this isnt from a modification from me)
the code follows this pattern.

<form .....
html content

<form ....
html content

</form>

<form ....
html content

<form ....
html content

</form>

so a form tag is created (for a product) and then another form is created (for a product) without the first one being closed. repeat.




Go to Top of Page

eric
Starting Member

5 Posts

Posted - February 03 2005 :  13:10:29  Show Profile  Reply with Quote
This was the problem (though im not sure why....) after making this change, it works..... but I will continue to test it.

in shopproductformat_template.asp
around line 23.
If ProductSelect<>"Yes" then
response.write "<form action=""shopaddtocart.asp"" method=""POST"">"
end if
ShopTemplateWrite template, objRs, rc
If ProductSelect<>"Yes" then
response.write "<input type=hidden name=productid value=" & lngCatalogId & ">"
stayonpage=getconfig("Xproductstayonpage")
If stayonpage="Yes" then
url="shopdisplayproducts.asp?page=" & mypage
response.write "<input type=hidden name=returnurl value=" & url & "></form>"
end if
response.write "</form>"


I made the following change.
If ProductSelect<>"Yes" then
'this one line was added VVVVV
Response.write "<form action=""shopaddtocart.asp"" method=""POST"">test"

response.write "<input type=hidden name=productid value=" & lngCatalogId & ">"
stayonpage=getconfig("Xproductstayonpage")
If stayonpage="Yes" then
url="shopdisplayproducts.asp?page=" & mypage
response.write "<input type=hidden name=returnurl value=" & url & "></form>"
end if
response.write "</form>"


Seems that sometimes it add the <form ...., but then not add the </form> so now instead it allways adds them both at the time time.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000