• Resolved dazmer

    (@dazmer)


    Hi,

    we use this plugin together with the Shoptimizer theme and germanized plugin and we have a problem on the checkout page (block based):

    If you click on the AmazonPay Express button, log in, select an address and then land back on the checkout page, the address is filled in briefly and then the checkout form is emptied again. This only happens with the Amazon Express button. Paypal express works and also the normal payment via amazon pay.

    We were able to find out that this only happens if no federal state (we are in Germany) is selected in the address in the amazon account.

    Apparently the block-based checkout form does not work if no federal state is selected in the Amazon account adress.

    How can we solve this problem?

    This is what our checkout page looks like: https://ibb.co/SXqqfr0D

    • This topic was modified 1 month, 1 week ago by dazmer.
    • This topic was modified 1 month, 1 week ago by dazmer.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Christian

    (@christian1983)

    Hey @dazmer

    Hope you are doing well!

    Can you give be an example of the address that the user is using with the non-federal state so I can test it on my testing site?

    Thanks in advanced

    Best,
    Christian

    Thread Starter dazmer

    (@dazmer)

    Hello Christian,

    Thank you for your message. I have done a few tests for you to better show the problem:

    CASE 1: Works. Form is filled out correctly
    Correct state in amazon account: https://ibb.co/zWpMSxsX
    Result: https://ibb.co/CpBBVz79

    CASE 2: Error. Form is filled out briefly and then deleted again.
    Wrong state: https://ibb.co/fGMW9pZ0
    Result: https://ibb.co/SwkFCh6f

    CASE 3: Error. Form is filled out briefly and then deleted again.
    No federal state: https://ibb.co/C3CzVXrZ
    Result: https://ibb.co/SwkFCh6f

    So, the checkout form has a problem if no or an incorrect federal state is filled in.

    How do you think the problem can be solved?

    PayPal Express Button works without problems.

    Best regards

    Plugin Support Christian

    (@christian1983)

    Hey @dazmer

    Hope you are doing well!

    I was able to reproduce the issue, but only happens when the Germanized plugin is active + Checkout blocks.

    I will check with the development team and get back to you to see what we can do.

    Best,
    Christian

    Thread Starter dazmer

    (@dazmer)

    Thanks Christian. Germanized is an important plugin in Germany so unfortunately I can’t deactivate it.

    Maybe useful: in Germanized options you can split the chrckout process into several steps/pages. Then the amazon process also works as desired.

    Unfortunately, this is not a solution for me because I need the checkout process on one page.

    Thread Starter dazmer

    (@dazmer)

    Hello @christian1983 ,

    is it possible to say when the problem will be solved?

    We have deactivated Amazon Pay for as long as the problem persists. But we would like to reactivate it soon.

    Thread Starter dazmer

    (@dazmer)

    Hello?@christian1983?,

    Is there perhaps another solution to this problem?

    Plugin Support Christian

    (@christian1983)

    Hey @dazmer

    Hope you are doing well!

    This is what the development team found about the Germanized plugin:

    We have a select field with Id=”shipping-state”, this field must exist, it can change the label again like in Canada, Japan, or it can even be hidden, but it cannot be removed.
    In traditional checkout the plugin works correctly, leaving the field hidden as we can see in the file includes/class-wc-gzd-checkout.php line 431

    public function filter_de_states_locale( $locale ) { if ( $this->disable_de_state_select() && isset( $locale['DE'], $locale['DE']['state'] ) ) { $locale['DE']['state']['hidden'] = true; } return $locale; }

    However, in block checkout the plugin removes the HTML element from the DOM, this action breaks Amazon’s execution.
    (The file responsible for this seems to be: assets/js/blocks/checkout-pickup-location-select/slotfills/pickup-location-select.js)?

    I already opened a thread here so you can follow-up.

    Best,
    Christian

    Thread Starter dazmer

    (@dazmer)

    Hello @christian1983 ,

    is it possible to say when the problem will be fixed?

    We have still deactivated Amazon.

    Hi @dazmer : )

    I am part of the development team and I am following your case.
    We are checking to add this fix to version 2.5.5.

    I’ll let you know when we have a definition, but we’ll do our best to add it to this roadmap.

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