• Resolved wghamil

    (@wghamil)


    I’m in the process of setting up a new webstore and I would like to use Amazon Pay integration; however, whenever I enable Amazon Pay for WooCommerce, a blue box stating “Have an Amazon account?” is displayed above every WooCommerce block on the checkout page. Not only does this look bad when a user isn’t signed in with an Amazon account, but when a user is signed in it also duplicates the shipping address and payment method at three different locations on the page. Here is a total list of the design issues:

    1). A user is not logged into their Amazon account: blue box appears at the top of the following WooCommerce Modules asking if you have an Amazon account: Woo Checkout Billing, Woo Checkout Shipping, Woo Checkout Information, Woo Checkout Details, Woo Checkout Payment. I would expect for this to only show up at the top of one or two of these (Billing and / or Payment)

    2). A user is logged into their Amazon account:
    a). “You’re logged in with your Amazon Account. Log out” is displayed in a blue box in all of the locations mentioned above in 1). Again, I would expect it to only appear in 1-2 of these locations.
    b). Shipping address is duplicated in all of the following blocks: Woo Checkout Billing, Woo Checkout Details, and Woo Checkout Payment. I would expect this to only be shown in the Billing or Shipping block.
    c). Payment Method is duplicated in all of the following blocks: Woo Checkout Shipping, Woo Checkout Details, Woo Checkout Payment. I would expect this to only show up in the Payment module.
    d). “Create an account?” for the local website is duplicated in the shipping block.
    e). “Other notes (optional)” is duplicated within the Woo Checkout Payment block whereas it is shown only once in the Woo Checkout Information block during a standard checkout.

    Everything functionally seems to work fine, but the duplication of blocks would be very discouraging for me if I was a customer on the website.

    The website is currently running WordPress v. 6.0.2, with WooCommerce v. 6.8.2, Divi theme v. 4.18, and WooCommerce Amazon Pay v. 2.2.4.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Christian

    (@christian1983)

    Hey @wghamil

    Hope you are doing well and thanks for reaching out to us!

    I suspect that is related to the Divi theme, as we already test it with Storefront, and seems to be working fine (standard checkout template, with no blocks). I’m going to do some tests with the Divi theme and get back to you.

    Is there any particular thing that I should set up on the Divi theme?

    Best,
    Christian

    Plugin Support Christian

    (@christian1983)

    Hey @wghamil

    I managed to reproduce your problem, I will get back to you as soon as possible.

    Best,
    Christian

    Plugin Support Christian

    (@christian1983)

    Hey @wghamil,

    We found out that it’s a Divi issue. What happens is that Divi for multiple Woo Checkout modules uses the same template. Which calls the hook woocommerce_before_checkout_form every time one of these modules is being rendered.

    On its own, it manages not to duplicate core Woocommerce callbacks hooked into woocommerce_before_checkout_form. But the message provided by our plugin “Have an Amazon account?” is also hooked in the woocommerce_before_checkout_form action which shouldn’t be fired more than once as Divi does and it’s not aware of it in order to suppress it after being fired for the first time.

    Hope this can help you!

    Best,
    Christian

    Thread Starter wghamil

    (@wghamil)

    Hey @christian1983,

    Thank you for your quick response!

    That gives me plenty of info to dive into and investigate, and hopefully I can figure something out!

    Thanks again!

    Plugin Support Christian

    (@christian1983)

    Happy to hear, @wghamil !

    If you need any other help, please don’t hesitate to open a new thread.

    Would you mind taking a minute to leave your?feedback?on your experience with the plugin? Your insights are incredibly valuable and will help us make sure we serve you and other amazing customers well in the future.

    Thank you for taking the time to share your opinion. It makes such a difference in how we show up and serve others!

    Best,
    Christian

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘“Have an Amazon account?” duplicated in every checkout block’ is closed to new replies.