WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Internet Explorer 8 responsiveness issues (7 posts)

  1. lemmonaid
    Member
    Posted 1 year ago #

    Hi guys,

    My theme (I am the creator of it) uses http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js to provide responsive functionality for Internet Explorer 8 browsers. This, however, throws a JavaScript error when visitting WooCommerce pages of the website. When viewing a product page for example: http://themes.webmandesign.eu/lespaul/product/weber-one-touch-gold-premium-charcoal-grill-57cm/.

    Can you please have a look at the issue?

    Thanks,

    Oliver

    http://wordpress.org/extend/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 1 year ago #

    I believe this is not an issue with WooCommerce plugin but with your theme. How are you including JS files into your theme? And what is the exact error you're getting? So I am assuming this breaks the responsiveness in IE8?

  3. lemmonaid
    Member
    Posted 1 year ago #

    Hi,

    The script is being included only on Internet Explorer browser and this is the code I use in HTML head for it:

    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <script>window.html5 || document.write('<script src="<?php echo WM_ASSETS_THEME; ?>js/html5.js"><\/script>')</script>
    <script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
    <![endif]-->

    Please try to have a look at the link I've provided. The issue is only occuring when viewing WooCommerce pages, not other pages of the website.

    The JS error is: "SCRIPT5007: Unable to get property 'indexOf' of undefined or null reference css3-mediaqueries.js, line 314 character 1"

    Thanks.

  4. mikejolley
    Member
    Plugin Author

    Posted 1 year ago #

    I'm not seeing any errors on the page you posted - is this IE only?

  5. lemmonaid
    Member
    Posted 1 year ago #

    Yes, IE8 only.

  6. mikejolley
    Member
    Plugin Author

    Posted 1 year ago #

    If its IE8 only, and coming from the css3 JS file which it loads, I fail to see how this is WC..

    The line in question in your JS file:

    if(_23.getAttribute("rel").indexOf("style")>-1&&_23.href&&_23.href.length!==0&&!_23.disabled){

    I'm not 100% sure what its doing, but it looks like its looking for attributes which aren't there. Why not raise a ticket or view the help files for that particular library?

  7. lemmonaid
    Member
    Posted 1 year ago #

    I don't get this JS error on non-WooCommerce pages. That's why I thought it might be related to some WC JavaScripts it uses.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic