X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Prototype JavaScript framework - Bugs (https://forum.x-cart.com/showthread.php?t=33849)

luxor 09-11-2007 10:42 AM

Prototype JavaScript framework - Bugs
 
Hi, I had added some javascript fade effects on certain parts of my store, but am running into a problem on the product page, for when you have a product variant exception, the error message is no longer appearing, (i.e. Sorry, this combination of product options is not available.!" ) once i have the javascript file included.

I have narrowed down the code to one js file, for which i will include the code here. I need assistance in locating what in this file is causing x-cart to break. I have had 3 seperate developers work on it without success, so I am really trying a lot of trial and error. But if you can review the code and see if anything sticks out to you as a possible bug, it would be very helpful.

the javascript file is here:

http://66.219.52.218/xcart/prototype.js

luxor 09-11-2007 11:37 AM

Re: Prototype JavaScript framework - Bugs
 
i found the single function which is causing the error. when this is included, the product exception feature stops working. when excluding, it works.

does anybody recognize a function like this in xcart that may cause a clash?


Code:

  dispatchException: function(exception) {
    (this.options.onException || Prototype.emptyFunction)(this, exception);
    Ajax.Responders.dispatch('onException', this, exception);
  }
});



All times are GMT -8. The time now is 06:12 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.