AbanteCart Community

Shopping Cart Operations => Support => Topic started by: jitu1977 on March 10, 2020, 03:33:42 AM

Title: Embed Modal Window Error: TypeError: e.indexOf is not a function
Post by: jitu1977 on March 10, 2020, 03:33:42 AM
I am trying to embed product on static html page. But i keep getting error javascript TypeError: e.indexOf is not a function

trying to embed on home page. my installation is at .com/store and trying to embed at .com

can anyone help??
Title: Re: Embed Modal Window Error: TypeError: e.indexOf is not a function
Post by: jitu1977 on April 14, 2020, 04:38:53 PM
Only feature for which i opted to abantecart over woocommerce was ability to embed products on static pages.

Looks like made wrong choice of using this cart system.
Title: Re: Embed Modal Window Error: TypeError: e.indexOf is not a function
Post by: Basara on April 15, 2020, 07:02:12 AM
Post url with problem or html source so others can see and help
Title: Re: Embed Modal Window Error: TypeError: e.indexOf is not a function
Post by: jitu1977 on April 15, 2020, 04:51:36 PM
solved it after hours of racking of brain.

e.indexOf error in console screwed me and i dwelled into the javascript.

and the problem was because of css.

.fade:not(.show) {
    opacity: 0;
}

Changed 0 to 1. and it is working as it should.

Title: Re: Embed Modal Window Error: TypeError: e.indexOf is not a function
Post by: Basara on April 16, 2020, 03:22:17 AM
Thank you jitu1977 for posting solution