wagnerwagner / merx

Merx is a plugin to create online shops with Kirby.
https://merx.wagnerwagner.de
102 stars 10 forks source link

Success page language #70

Closed alexpi closed 1 year ago

alexpi commented 1 year ago

Hello,

When an order is placed, the success page is returned in the default site language. Can we return it in the language previously chosen by the user? I am on version 1.6.2, and I would like to avoid updating at this moment if possible.

alexpi commented 1 year ago

So, I decided to update Merx & Kirby to versions 1.7.1 and 3.9.6.1 respectively. Now I am getting the "Wagnerwagner\Merx\Merx::completePayment(): Return value must be of type OrderPage, Kirby\Cms\Page returned" error when the success controller runs `merx()->completePayment()'.

alexpi commented 1 year ago

Ok, the above error is solved by providing an empty order.php template. I don't use an order page, and I guess it is needed. Updating to the latest versions fixed the success page issue too.