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 326 posts 925 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 4125 posts 22223 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 326 posts 925 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 4125 posts 22223 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 326 posts 925 karma points
    Dec 01, 2021 @ 14:28
    Edgar Rasquin
    1

    Great news. Works perfectly.

    Thanks Matt!

  • Michele Benolli 31 posts 149 karma points
    Jul 21, 2022 @ 10:09
    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 4125 posts 22223 karma points MVP 9x c-trib
    Jul 21, 2022 @ 10:27
    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