Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Edgar Rasquin 282 posts 801 karma points
    Dec 01, 2021 @ 13:54
    Edgar Rasquin
    0

    Problem with language in vendr.checkout

    Hi Matt,

    I have a problem with the languages in vendr.checkout. I have chosen the conventional language variant, i.e. I have two root nodes: de and it under which the checkout subpages are located.

    In the checkout, I always stay in the selected language until I reach the /it/checkout/review-order/ step. If I click on "continue to process payment" here, I end up on the general page

    "/checkout/order-confirmation/"

    when really I should be forwarded to the language variant it

    "/it/checkout/order-confirmation/".

    Under the "Order Confirmation" node in the backend in the info tab I also have the correct link:

    "/it/checkout/order-confirmation/".

    I hope I have expressed myself clearly.

    I am using:

    Installed Version Vendr v1.8.1

    Vendr.Checkout v1.2.0

    Do you know why this happens?

  • Matt Brailsford 3688 posts 19399 karma points MVP 9x c-trib
    Dec 01, 2021 @ 14:03
    Matt Brailsford
    0

    Hi Edgar,

    Are your payment providers settings correct for your given language? It's in the provider settings that define where to go on order completion so if these are pointing to the wrong location this may be the issue.

    enter image description here

    Matt

  • Edgar Rasquin 282 posts 801 karma points
    Dec 01, 2021 @ 14:14
    Edgar Rasquin
    0

    Hi Matt,

    thanks for your reply.

    The problem is that I only have the setting once under Setting, but the shop in de and it. So I would need two input fields, one per language, right?

  • Matt Brailsford 3688 posts 19399 karma points MVP 9x c-trib
    Dec 01, 2021 @ 14:18
    Matt Brailsford
    100

    Hi Edgar,

    In that case you should be able to use the little dictionary icon on that continue URL field and provide different URL's for the different languages. This will then store those values in Umbraco's dictionary section and store a reference to it in the form of #dictionary-key in the input field. Vendr should then know to lookup the relevant value based on the orders language.

    Hope this helps

    Matt

  • Edgar Rasquin 282 posts 801 karma points
    Dec 01, 2021 @ 14:28
    Edgar Rasquin
    1

    Great news. Works perfectly.

    Thanks Matt!

  • Michele Benolli 26 posts 144 karma points
    22 days ago
    Michele Benolli
    0

    Hi Matt, We created a key for the continue URL field as suggested, however the reached order confirmation page is always the same (the Italian version). Are there any other settings to look at?

    enter image description here

  • Matt Brailsford 3688 posts 19399 karma points MVP 9x c-trib
    22 days ago
    Matt Brailsford
    1

    Have you set the orders language correctly?

    order.SetLanguage(isoCode);
    

    When an order is created, it is given the current language site, but if you change the language, you need to update the order accordingly.

Please Sign in or register to post replies

Write your reply to:

Draft