Site language for checkouts

Hi,

Is it possible to retrieve the site language in which a checkout is made? We want to make an abandoned cart email application multi-lingual. Therefore we need to know in which language a customer made a checkout.


Thx,

Bas

1 comment

  • MilesbdMilesbd Moderator, Lightspeed Staff Posts: 21 moderator

    Hi @basterbrugge !


    Good question!

    The checkout is made in the language that the user has chosen at the time of checkout (i.e. if I view the site in 'FR' the checkout will be in 'FR').

    That being the case, you could simply query the value for shop.language at the time that the checkout was created (using the front end API).


    Happy coding!

Sign In or Register to comment.