Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @joelmellin,

    Thank you for reaching out,

    The behavior you are experiencing is in Woocommerce, and OceanWP has no control over it. In the Ajax add-to-cart, there is no notification message.

    In this case, to show the notification, you must deactivate the aja add to cart by navigating WP Dashboard > Appearance > Customizer > WooCommerce > Single Product: https://postimg.cc/bdZzCWLc.
    And here is the setting for the archive page: https://postimg.cc/CdsW4NpT.

    After disabling the ajax add to cart feature, here is a screenshot: https://postimg.cc/yJRG3hyG.

    I hope it helps.
    Best Regards

    Maarten

    (@maartenbelmans)

    Hi @skalanter

    I want to chime in as a similar issue has been bothering me for a while.

    WooCommerce itself only adds ajax features on the Shop (archive) page. OceanWP takes that functionality and includes it on the single product page. You’re doing it this way because you want to use WooCommerce standards as much as possible. That’s great, and I applaud that in many cases.

    But in this case, the WooCommerce standard is not enough. Their ajax behavior was not meant to run on the single product page. In using it, you create UX problems. If “add to cart” fails, the user is never alerted and instead sees the “product added” message.

    Enabling Ajax through OceanWP therefor breaks all validation messages Woo might show (such as stock errors) but also breaks all plugins that depend on extra cart validation, such as WooCommerce Product Add-ons, WooCommerce Bookings, etc … (basically any plugin that adds options to the product page and needs to validate user selection/input).

    Therefore, I vote that you implement proper ajax behavior for the single product page, as many other themes have done.

    The reason why WooCommerce’s built-in ajax functionality works on the archive page is because they know there can’t be any stock errors (you can only add 1 item to cart and the button won’t show for items out of stock/unpurchaseable). The story is different on the single product page, where users can select variations and add any quantity.

    Please send this to OceanWP’s decision makers for consideration. If it helps, here are some other tickets backing this issue, just to show this may require some reconsideration from your end:

    https://wordpress.org/support/topic/notices-after-ajax-add-to-cart-2/
    https://wordpress.org/support/topic/issue-with-ajax-add-to-cart/
    https://wordpress.org/support/topic/add-to-cart-function-on-single-product-page/

    Thanks!

    • This reply was modified 2 months, 3 weeks ago by Maarten.

    Hello @maartenbelmans,

    Thanks so much for taking the time to share that idea.

    I have forwarded your idea to the Product Manager, who will ensure it is brought to the team’s attention for further consideration.

    We’re always looking for ways to improve, so if you have any other thoughts or suggestions, we’d love to hear them.

    Thank you again,
    Kind Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.