Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

estore seems to be preventing a small custom script from loading

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › estore seems to be preventing a small custom script from loading

Tagged: ajax conflict, JavaScript conflict, jquery conflict

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 3 months ago by admin.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 2, 2013 at 3:15 pm #8477
    seancon1
    Member

    i have a script to load an XML file, for some reason it is not loading the file when i enable estore cart.

    setInterval(checkForSongUpdates, 10000);
    var oldLastSongSeen = 0;
    function checkForSongUpdates() {
    $.ajax({
    type: "GET",
    url: "PATHTOFILE",
    dataType: 'xml',
    async: false,
    success: function(data) {
    var newLastSongSeen = $(data).find('air_time').text();
    if (oldLastSongSeen != newLastSongSeen) {
    $.ajaxSetup({ cache: false });
    getNewLatestSong();
    oldLastSongSeen = newLastSongSeen;
    } else {
    oldLastSongSeen = newLastSongSeen;
    }
    }
    });
    };
    function getNewLatestSong() {
    $(document).ready(function() {
    $("#responsecontainer").load("PATHTOFILE");
    $.ajaxSetup({ cache: false });
    });
    }

    im not exactly sure what could be causing the issue, but i have narrowed it down to the function

    wp_eStore_add_footer_code()

    in wp_eStore1.php if i comment out the following my script will work but i am not sure of the issues this may cause.

    eStore_load_t_and_c_jquery();
    eStore_load_shipping_var_change_warning_jquery();
    eStore_load_cart_qty_change_jquery();

    thank you for any assistance or suggestions.

    Sean

    February 3, 2013 at 10:54 pm #53538
    admin
    Keymaster

    Hi Sean, eStore’ won’t prevent any JavaScript from loading. The javascript code in all of our plugins are error free. If there is an error in the other JavaScript code then it can conflict with the JS code from eStore and act weird. Please post a link to the page where you have above mentioned situation so I can go and view the page the source and give you more details.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ