• Resolved tang01

    (@tang01)


    Hello WooCommerce community,

    I am experiencing an issue with the behavior of product images on the shop page. When I click on the center of a product image, the product is added to the cart and I am redirected to the cart page. This is happening instead of the intended behavior of opening the product image.

    This issue only occurs when I click on the center of the product image. Clicking on other areas of the image opens the product page as expected.

    I have also tried to deactivate the other plugins one by one but the issue is still there…

    I have not been able to identify the cause of this issue. Can anyone provide any insights or suggestions on how to resolve it?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Afzal (woo-hc)

    (@afzalpansuvi)

    Hi @tang01,

    Thank you for reaching out to WooCommerce and for providing a detailed description of the issue you’re experiencing. I want to assure you that the behavior you described, where clicking on the product image redirects you to the product page, is the default behavior of WooCommerce. It is not the default behavior to add the product to the cart when clicking on the product image in the shop section.

    I’ve tested your site and I could not replicate the issue. When I clicked on the product image, I was redirected to the product page as usual, but the product was not added to the cart unless I clicked the ‘Add to Cart’ button.

    To help us troubleshoot this issue further, could you please test it again on a different browser? This will help us eliminate any browser-related cache issues. If the problem persists, it would be helpful if you could provide any error messages you might be seeing, or share a screencast.

    Looking forward to your response.

    Thread Starter tang01

    (@tang01)

    Thank you for your response, @afzalpansuvi. I appreciate your input, but I believe there may have been a misunderstanding.

    To clarify, the issue I’m referring to is that when clicking on the center of the product images, they redirect to the cart page instead of opening the individual product page. This behavior is consistent across multiple browsers.

    I would like to request your assistance in resolving this issue by ensuring that clicking on the center of the product image opens the corresponding product page, displaying its details, without redirecting the user to the cart page or adding the product to the cart.

    I’ve also attached the image link of the issue

    Cart issue while hovering/clicking right in the center of all productshttps://drive.google.com/file/d/1Z5-50D2pYsCzTRedCid3Zu6IM0ThKYLO/view?usp=sharing
    anastas10s

    (@anastas10s)

    ?? hey @tang01

    Thank you for reaching back, with further details on this.

    To clarify, are you able to reproduce this behavior with a default theme enabled, like TT3, and only the latest version of the WooCommerce plugin activated, or otherwise?

    We await your response to better assist you.

    Thread Starter tang01

    (@tang01)

    Issue is resolved now! The issue is with the theme and I’ve got a code from theme support and now everything is working fine

    Here is the code:
    .products li .added_to_cart, .products li .add_to_cart_button { pointer-events: none; }

    Hi @tang01,

    Glad to hear it – thanks for letting us know!

    If you have any further questions, I recommend creating a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WooCommerce Product Image Click Issue’ is closed to new replies.