Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Mar 2006
    Posts
    477
    Plugin Contributions
    0

    Default Javascripts loading twice on the page

    https://ad-discountperformance.com/

    If you go to our website and view the source code you will see that the GTS javascript is loading twice and i can't seem to figure out why and how to go about fixing this issue.

    If anyone can help me with this it would be great here is what i have tried so far.

    1) unstalled all files and ran the unistalled SQL
    2) checked all files for duplicate javascript there is none
    3) Reinstalled all files and loaded all info again and it is still showing 2 java script lines. ( line 142 & Line 322) in the view source section.
    We sell ATV, Dirtbike, Streetbike, Snowmobile, Watercraft & Custom stickers & Banners. Check us out www.AD-DiscountPerformance.com

  2. #2
    Join Date
    Jan 2004
    Posts
    66,380
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Javascript loading twice for google trust store

    If you use Admin->Tools->Developers Toolkit, and use the "last" search box to "search all .php files" ... and choose "all Catalog files", and search for: trustedstores

    ... then it should show you a list of all files where "trustedstores" is found.
    That may offer some clues for something you hadn't considered.


    Which plugin are you using to add this trustedstores functionality to your store?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Mar 2006
    Posts
    477
    Plugin Contributions
    0

    Default Re: Javascript loading twice for google trust store

    Quote Originally Posted by DrByte View Post
    If you use Admin->Tools->Developers Toolkit, and use the "last" search box to "search all .php files" ... and choose "all Catalog files", and search for: trustedstores

    ... then it should show you a list of all files where "trustedstores" is found.
    That may offer some clues for something you hadn't considered.


    Which plugin are you using to add this trustedstores functionality to your store?
    the plugin is from numinix called google trusted stores version 1.2.8


    i have tried to search for duplicates using the developers tool kit ill check it again and see if anything shows on this installed one v
    We sell ATV, Dirtbike, Streetbike, Snowmobile, Watercraft & Custom stickers & Banners. Check us out www.AD-DiscountPerformance.com

  4. #4
    Join Date
    Mar 2006
    Posts
    477
    Plugin Contributions
    0

    Default Re: Javascript loading twice for google trust store

    Quote Originally Posted by DrByte View Post
    If you use Admin->Tools->Developers Toolkit, and use the "last" search box to "search all .php files" ... and choose "all Catalog files", and search for: trustedstores

    ... then it should show you a list of all files where "trustedstores" is found.
    That may offer some clues for something you hadn't considered.


    Which plugin are you using to add this trustedstores functionality to your store?
    ok only found one thing

    public_html/includes/templates/***********/jscript/jscript_google_trusted_stores.php

    Line #34 : gts.src = "https://www.googlecommerce.com/trustedstores/api/js";
    We sell ATV, Dirtbike, Streetbike, Snowmobile, Watercraft & Custom stickers & Banners. Check us out www.AD-DiscountPerformance.com

  5. #5
    Join Date
    Jan 2004
    Posts
    66,380
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Javascript loading twice for google trust store

    Okay, good. That means there's only one file that's actually outputting the snippet.

    But now do a search for jscript_google_trusted_stores .... just in case you've got some code that's calling it multiple times. (Keep in mind that since it's named jscript_* it's gonna get loaded once automatically anyway, so if it's also mentioned in any other file that'll be what's making it run again.)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Mar 2006
    Posts
    477
    Plugin Contributions
    0

    Default Re: Javascript loading twice for google trust store

    Quote Originally Posted by DrByte View Post
    Okay, good. That means there's only one file that's actually outputting the snippet.

    But now do a search for jscript_google_trusted_stores .... just in case you've got some code that's calling it multiple times. (Keep in mind that since it's named jscript_* it's gonna get loaded once automatically anyway, so if it's also mentioned in any other file that'll be what's making it run again.)

    Searching 1560 files ... for: jscript_google_trusted_stores

    Match Lines found: 0
    Warning Error: No matching Configuration Keys were found ... jscript_google_trusted_stores
    We sell ATV, Dirtbike, Streetbike, Snowmobile, Watercraft & Custom stickers & Banners. Check us out www.AD-DiscountPerformance.com

  7. #7
    Join Date
    Jan 2004
    Posts
    66,380
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Javascript loading twice for google trust store

    Hmmm ...

    Numinix Support has probably encountered this before, and probably will come up with an answer faster than me downloading and studying the plugin in more detail.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Mar 2006
    Posts
    477
    Plugin Contributions
    0

    Default Re: Javascript loading twice for google trust store

    Quote Originally Posted by DrByte View Post
    Hmmm ...

    Numinix Support has probably encountered this before, and probably will come up with an answer faster than me downloading and studying the plugin in more detail.
    i haven't had any luck with that route. I opened a ticket with them and haven't heard anything in a week
    We sell ATV, Dirtbike, Streetbike, Snowmobile, Watercraft & Custom stickers & Banners. Check us out www.AD-DiscountPerformance.com

  9. #9
    Join Date
    Jan 2004
    Posts
    66,380
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Javascript loading twice for google trust store

    Wait. This has nothing to do with Trusted Stores.

    Your site is loading ALL your CSS and JS stuff twice.

    And I think that's because you're using the CSS/JS-Loader plugin (which I've always hated because, well, it's a mess).
    You'll need to sort out why the plugin is firing *and* the default loading of css and js is also firing.

    Getting rid of all that duplication will make your site faster :)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Mar 2006
    Posts
    477
    Plugin Contributions
    0

    Default Re: Javascript loading twice for google trust store

    Quote Originally Posted by DrByte View Post
    Wait. This has nothing to do with Trusted Stores.

    Your site is loading ALL your CSS and JS stuff twice.

    And I think that's because you're using the CSS/JS-Loader plugin (which I've always hated because, well, it's a mess).
    You'll need to sort out why the plugin is firing *and* the default loading of css and js is also firing.

    Getting rid of all that duplication will make your site faster :)
    oh boy. So any suggestions on where to start?
    We sell ATV, Dirtbike, Streetbike, Snowmobile, Watercraft & Custom stickers & Banners. Check us out www.AD-DiscountPerformance.com

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Step 3 Confirmation page loading the checkout_confirmation section twice
    By src1988 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 18 Mar 2016, 03:45 PM
  2. v154 sub catagory names display twice in the center page
    By TheGunStoreGuy in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 May 2015, 09:44 PM
  3. v150 how to add javascripts?
    By Sarthak in forum General Questions
    Replies: 5
    Last Post: 11 Jul 2012, 01:15 PM
  4. CSS files are loading twice,normal and minimized,how to solve?
    By Rimo in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 27 Mar 2011, 11:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR