Author Topic: Embed Modal Window Error: TypeError: e.indexOf is not a function  (Read 1531 times)

Offline jitu1977

  • Newbie
  • *
  • Posts: 8
  • Karma: +2/-0
    • View Profile
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??
« Last Edit: April 14, 2020, 04:39:46 PM by jitu1977 »

Offline jitu1977

  • Newbie
  • *
  • Posts: 8
  • Karma: +2/-0
    • View Profile
Re: Embed Modal Window Error: TypeError: e.indexOf is not a function
« Reply #1 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.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5201
  • Karma: +260/-2
    • View Profile
Re: Embed Modal Window Error: TypeError: e.indexOf is not a function
« Reply #2 on: April 15, 2020, 07:02:12 AM »
Post url with problem or html source so others can see and help

Offline jitu1977

  • Newbie
  • *
  • Posts: 8
  • Karma: +2/-0
    • View Profile
Re: Embed Modal Window Error: TypeError: e.indexOf is not a function
« Reply #3 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.


Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5201
  • Karma: +260/-2
    • View Profile
Re: Embed Modal Window Error: TypeError: e.indexOf is not a function
« Reply #4 on: April 16, 2020, 03:22:17 AM »
Thank you jitu1977 for posting solution

 

Powered by SMFPacks Social Login Mod