• Resolved mfghost

    (@mfghost)


    I was recently notified by a few customers trying to add products to their carts that when they click the add to cart button nothing happens. The pagination at the bottom of the store pages also doesn’t allow them to click to go to page #2. Everything works fine on Android mobile but on iPhones the customers encounter these issues. Below is the message I was sent from one explaining the issue. I had no idea about this or the need to click the add to cart button twice…if there is a snippet of code to add somewhere please let me know. If this has been happening then it is/has been costing me sales for over three months now.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mfghost

    (@mfghost)

    I found a fix for the double-tap/iPhone issue, well it worked for me. Before, customers had to click twice on the pagination numbers (only when in the woocommerce store), the product variations and the add to cart button. Once I added this code to functions.php inside the theme folder and cleared the cache everything worked with one click.

    function fix_ios_double_tap_issue() {
      echo '<script>document.addEventListener("touchstart", function() {},false);</script>';
    }
    
    add_action('wp_head', 'fix_ios_double_tap_issue');

    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hi @mfghost ,

    It seems you may have found a fix to the issue you have been experiencing – nice work!

    While this is not something I am able to replicate on my test site which uses the latest version of WooCommerce core, WordPress and the default Storefront theme, I am really glad to hear that you managed to get this sorted!

    I’ll go ahead and mark this as resolved then, however feel free to?create a new topic?should you need any further help.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customers On iPhone Have To Click Add To Cart Button Twice For Product To Be Add’ is closed to new replies.