X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   fts_instant_product_search.js error (https://forum.x-cart.com/showthread.php?t=34190)

minorgod 09-26-2007 07:20 PM

fts_instant_product_search.js error
 
Working on a client site, I discovered that if you remove the search form from your templates, you start getting javascript errors if you are using the fts_instant_product_search feature. The errors can be fixed by adding a line to the fts_instant_product_search.js file:

FIND:
Code:

addEvent(window, "load", pInit);

It should be the last line of the file.

BEFORE ADD:
Code:

if(document.productsearchform)

That will stop the init function for the search javascripts from being called if there's no search form on your page.

balinor 09-27-2007 03:29 AM

Re: fts_instant_product_search.js error
 
Isn't fts an add-on? If so, isn't it a bug with the add-on and not X-Cart?

groovico 09-27-2007 04:35 AM

Re: fts_instant_product_search.js error
 
It's not a bug on either, Mr Brewer just breaking our stuff ;)

balinor 09-27-2007 04:38 AM

Re: fts_instant_product_search.js error
 
Heh. Moving to Third Party Add-Ons


All times are GMT -8. The time now is 09:07 AM.

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