View Single Post
  #1  
Old 09-26-2007, 07:20 PM
  minorgod's Avatar 
minorgod minorgod is offline
 

X-Adept
  
Join Date: Sep 2002
Location: Arivaca, AZ
Posts: 402
 

Default 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.
__________________
www.brettbrewer.com
Getting back into x-cart dev after a long hiatus. Modded lots of x-carts from version 3.1.x to 4.1.x. Developer of ImageScaler mod, Pre-login per user coupon mod, Wordpress feed mod, DigitalSubscriptions mod, Phonetic bulk download keys addon for DownloadExpander mod, Serial Number Generator for ESD products, Custom CMS/LMS integrations, external products mod, and more.
Reply With Quote