• Hi,
    i have a problem with oceanwp and a plugin called PayPal Plus for Woocommerce. The error occurs when the plugin calls a function to get the cart content. Through testing I know that it has something to do with things that happen when a product is added to cart. What does Oceanwp change in this process compared to the standard process?
    Thanks for your help ahead.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author oceanwp

    (@oceanwp)

    Hello, is Ajax is activated on your single product? If yes, go to the WooCommerce > Single Product section of the customizer and disable the Ajax add to cart.

    Thread Starter jakoblieser

    (@jakoblieser)

    Thank you so much. Yes it was and without it everything works well. Now theres one problem left, my client wants ajax buttons. Is there a way to make oceanwp compatible with the plugin?

    Theme Author oceanwp

    (@oceanwp)

    Hello, you’re welcome ??
    Unfortunately, no, I don’t know enough this plugin to make the ajax work correctly, the ajax work only with the default WooCommerce features, not extra plugins.

    Thread Starter jakoblieser

    (@jakoblieser)

    I know more about the problem now. A Script calls the function wc_get_product and the function returns false instead of the product data. This causes the Errot In the woocommerce Core I looked up that function and it returns false if it gets called before the woocommerce_init action is done. What does the ajax option change in the process of the woocommerce_init action? Also it only happens with when variable products are in the cart. Does Ajax not work with variable products?

    Theme Author oceanwp

    (@oceanwp)

    Hello @jakoblieser, yes, by default, the single product Ajax add to cart work with variable products, but for external plugins, there are too many, I could not make them all compatible with the Ajax add to cart.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘What does OceanWP change in the add to cart process?’ is closed to new replies.