• Resolved webarkitekterne

    (@webarkitekterne)


    Hi,
    I have a problem with Woocommerce and Stripe’s Google pay (perhaps also with Apple pay).

    The problem: A customer visits our webshop and finds a product. The customer is presented with a “pay with google pay” and a add to cart-button on said page. If the customer clicks the “google pay”-button, a error popup happens (the cart is empty). The only way the google-button works, is for the customer to add a product to the cart first. This means, there is no reason to show the google-pay button until the customer is on the check-out page. This (unnecessary) error will discourage a potential customer. I can disable google-pay all together, but that would also discourage a sale. Is there a way to fix this so either the google-pay button automatically adds the product to the cart (like a one-click-buy) or make the google/apple-pay button to only show up on the check-out page? I suspect it’s the use of product variants within Woocommerce, that’s the culprit. (Please note: You will need an active google/apple-pay account in your browser for the button to show up).

    PS: I have talked to Stripe support, advising me to talk to you guys.

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Mike M. a11n

    (@mikedmoore)

    Automattic Happiness Engineer

    Hi @webarkitekterne ,

    Sorry to learn about the trouble with Google Pay. What you describe definitely isn’t the expected behavior. The Google Pay and Apply Pay buttons shouldn’t require that a product already be in the cart. The fact that the button works when a product is in the cart is a good sign that the connection is all working well.

    I would recommend performing a conflict test to rule out external factors causing interference with the Google Pay function. You can learn how to do that here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Thread Starter webarkitekterne

    (@webarkitekterne)

    Theme is Storefront (haven’t changed the theme). All woo related plugins were disabled. The problem persist.

    To me, it seems like a problem with product variations, because there’s no problem on a product with no variations.

    I’ve disabled the g&a pay options for now. Best solution would be for you to develop an option that lets admins decide on which pages the g&a payment option should be shown on: Product pages, the Check out pages or both. Personally I would only show it on the checkout page.

    I’m going to create a staging/dev site with a full copy of the live site, to see if I can find/debug where the problem is.

    Plugin Support Senff

    (@senff)

    Hey @webarkitekterne

    You mentioned that you haven’t changed the theme during your testing, though I can see that you’re using a child theme of Storefront, not Storefront itself.

    Have you tried this by deactivating all plugins (except WooCommerce and Stripe), and switch to the Storefront parent theme, to see if the issue still occurs that way?

    Thread Starter webarkitekterne

    (@webarkitekterne)

    I will try this once I have a working staging site.

    Sounds good @webarkitekterne! Let us know what you find.

    Thread Starter webarkitekterne

    (@webarkitekterne)

    After disabling every plugin and using the non-child Storefront theme on the staging server, I found the culprit. It was of course the last plugin I reactivated (as always should have started with the last first): The Woolentor free plugin. I have the pro version, so I will contact their support.

    One thing though. I still don’t see g-og apple-pay at the checkout. The button only shows up on the individual product pages. Are there not supposed to be a g-pay option with multiple products in the basket? It’s kind of useless if not, as coupons and/or BOGO deals cannot be applied without a customer going to the checkout page.

    Plugin Support Tseten a11n

    (@tibetanitech)

    Great! I’m glad you were able to locate the culprit with a conflict test.

    You can display the payment request buttons on the checkout as well. There is a snippet here in the link below that you can use:

    https://docs.woocommerce.com/document/stripe/#can-i-show-the-payment-request-button-on-the-checkout-page

    Thread Starter webarkitekterne

    (@webarkitekterne)

    Excellent. Thank you!

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    I’m going to mark this as resolved.

    Have a great one!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Google pay and an empty cart’ is closed to new replies.