HOME › WordPress Support › Mikmag WordPress theme › iphone and ipad

This topic contains 7 replies, has 5 voices, and was last updated by  Dusty 2 days, 5 hours ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • 26/11/2012 at 12:02 PM #9286

    Kevin
    Subscriber

    On the themeforest demo when I go to the store using an ipad or iphone while in responsive mode, I can not link to the product description or add to cart. I can see the products listed and the 2 black bars display but no link. Can you provide me with a solution to this problem? I know this is not a woocommerce issue but a theme issue and need this to work on mobile devices. If anyone has figured it out please share.

    Since this is a problem on the actual demo you used to market this theme, I posted this on the themeforest site and was given instructions to look on this site for answers. I did not find any. So, I would like to know why I can go to woocomerce themes and use an iphone and see details of products from the shop on their demo themes and i can not do it with Mikmag a responsive theme. Being a responsive theme it is important to have business critical functions like viewing products and adding to the cart on mobile devices. I am speaking in this manner because I saw a reply that says woocommerce does not support iphone or ipad on the themeforest support. I also do not see this as a support issue that should require to pay for additional support. If you provide instruction to the code that is needed to be changed I will be happy to do it myself.

    28/11/2012 at 4:58 PM #9302

    Curt Montgomery
    Subscriber

    Woocommerce works fine with iPhone and iPad, I have several Woo-based sites that work as they should. It’s definitely a theme issue, I’m digging through the code now to see what I can find. This is just the most recent of many bugs I’ve found with this theme (and it’s a biggie). I love the MikMag theme but I’ve damn near had to become a PHP developer to get it working right, and I have too much time (and money) invested in it now to move on to something else.

    TD - any response to this issue?

    28/11/2012 at 7:19 PM #9303

    Curt Montgomery
    Subscriber

    Man, I should be on TD’s payroll. The problem is in the theme.js file. Particularly this section:


    // WooCommerce product items
    //
    jQuery('ul.products .product').each(function(index, element) {
    var element = jQuery(element);
    var imgEl = element.children('img');
    var container = element.find('.product_hover_container');

    var ANIMATE_SPEED = 800;

    // Hover effects
    container.hide();
    container.css(‘visibility’, ‘visible’);

    if (isTouch) {
    var startEvent = ‘click’;
    var endEvent = ”;
    } else {
    var startEvent = ‘mouseenter’;
    var endEvent = ‘mouseleave’;
    }

    element.bind(startEvent, function(event) {
    container.css(‘top’, (imgEl.outerHeight(true) / 2 - container.height() / 2) + ‘px’);
    container.css(‘left’, (imgEl.outerWidth(true) / 2 - container.width() / 2) + ‘px’);

    container.stop(true, true).fadeIn(ANIMATE_SPEED / 2);

    event.preventDefault();
    return false;
    });
    if (endEvent !== ”) {
    element.bind(endEvent, function(event) {
    container.stop(true, true).fadeOut(ANIMATE_SPEED);

    event.preventDefault();
    return false;
    });
    }
    });

    This applies to the product listing page and is trying to tell the touchscreen how to handle the touch events. I'd be lying if I said I knew where the error was in the coding, but obviously there is one.

    What I do know is by stripping that section out of the theme.js file, as well as the fancy "black bars" overlay on product thumbnails from content-product.php, I now have iPhone clickable links to products. I've lost the black bars overlay functionality, but I was planning on getting rid of that as most products on my site are variable and can't be directly added to the cart anyway, so no loss there. It's definitely an issue that needs to be fixed though.

    28/11/2012 at 7:32 PM #9305

    Kevin
    Subscriber

    I am going to work it in and hope to have the same success the bar can go so long as the function is working. Let you know How it comes together for me. Thanks for the update.

    22/02/2013 at 3:37 PM #10806

    Marc Anderson
    Subscriber

    Kevin, have you made headway with this issue? I’m dealing with the same thing.

    23/02/2013 at 10:26 AM #10814

    kevin(Staff)
    Key Master

    Hi Marc,

    Are you getting this problem on the latest version of mikmag?

    I’ve just tested our demo site on my ipod touch and it appears to work properly.

     

    Kevin

     

     

    23/02/2013 at 5:10 PM #10824

    Marc Anderson
    Subscriber

    yes. this is the latest version. and the demo site is not responsive, is it?

     

    24/02/2013 at 5:12 AM #10825

    Dusty
    Subscriber

    I was having the same problem with the Empress theme. Interestingly, making the start and end events in the Touch section of code the same seems to make it work on ipad and iPhone. Eg:

    if (isTouch) {
    var startEvent = ‘mouseenter’;
    var endEvent = ‘mouseleave’;
    } else {
    var startEvent = ‘mouseenter’;
    var endEvent = ‘mouseleave’;
    }

    Removing the if statement altogether would work too I assume. Question is, will this break anything else? Seems fine on desktop so far!

    Perhaps someone with more JS experience can give us more insight.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

Close
WANNA KNOW WHAT'S COOKING?
Stay tunend, we'll keep you posted!

Twitter

Facebook

Google+