Closed Bug 117177 Opened 24 years ago Closed 24 years ago

Adding product to cart does not work on datorbutiken.com

Categories

(Core :: DOM: Core & HTML, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: andre.bugs2, Assigned: jst)

References

()

Details

[Build-ID: 2001-12-27-08] The site datorbutiken.com has a web shop that lets you add items to a shopping cart. Adding an item in mozilla does not work however, while it works in Netscape 4.x. While browsing the site I see this exception in the JavaScript Console: Error: uncaught exception: [Exceoption... "Component returned failure code 0x80004005 (NS_ERROR_FAILURE) [nslWebBrowserPersist.saveURI]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://communicator/content/contentAreaUtils.js :: nsHeaderSniffer :: line 238" data: no Each time i try to add an item to the shopping cart I see this error in JavaScript console: Error: document.si.addMore is not a function Source File: http://www.datorbutiken.com/se/shopit.htm Reproducable: 100% Steps to reproduce: 1) Go to http://www.datorbutiken.com/se/ 2) Click on a product category to the left such as "Ljudkort" 3) Click on the cart image to the right of a product, such as "Creative SoundBlaster Live! Player 5.1 bulk PCI". Result: The cart drop down on the bottom of the page still says "Din kundvagn är tom" which means "This shopping cart is empty". Expected result: The item should be added to the shopping cart.
Judging by the error message in JavaScript console the below code is involved here. Is it a coding error? function add(idescription, iart, iprice, iweight, ivol, ipack, ilevstat, icheck) { if(iprice == 0 || !icheck) { alert("Felaktigt kommando! Vänligen ladda om sidan genom att klicka [Uppdatera]/[Refresh] i din webläsare. Om detta ej hjälper - var god kontakta Kundtjänst."); } else { if(document.si.addMore()) { for(k=1; k<=document.si.getCount(0); k++) { if(iart == document.si.getArt(0,k) && idescription == document.si.getDescription(0,k)) { alert("Du har redan beställt denna produkt. Vill du beställa flera, så var god ändra antalet i kundvagnen."); return; } }
The alert in the addMore function says "You have already ordered this product. If you want to order more, please change the number in your shopping cart". In other words it seams as the function addMore should not have been called here since the product is NOT presently in the cart.
<applet ID="si" NAME="si" CODEBASE="shopit" CODE="shopit.class" WIDTH="5" HEIGHT="5"> Anyone knows what kind of applet that is? java? I'm guessing it will only work if you have the java plugin enabled in that case. If you have java enabled and it still shows the problem, it's probably a LiveConnect issue.
Fabian, that seams to be it. When I turned off Java in NS 4.x it stopped working too. BUT, why didn't mozilla inform me that the page needs java like it normally does with a dialog?
Because the checkbox in Preferences > Advanced to enable Java is unchecked perhaps?
Fabian, you make so much sense today:-) Marking INVALID.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
yeah there are days like that :-) VERIFIED invalid.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.