On 1/29/2022 at 5:39 PM, El Patron said:Get geo targeting pro module, use maxmind commercia db. Set country default curriecies you want to use. They will then be served their currency.
Note: currency selector should be in footer same with language, this is current best practice.
Also please do not double post. The other was hidden.
Well, thank for the suggestion but it seems overkill for the task. Just a little tweak should be enough for this.
On 1/29/2022 at 10:40 PM, luishuaymana said:add your web link ... version of Prestashop ... theme of your website .. in order to help you
Currently under development. I'm using PS 1.7.8.1 with default theme.
It would be great to hear some pointers to where to look at in PS codebase.
Right now, I'm studying the FrontController.php file. In this file, the init() function have this line (384):
...
$currency = Tools::setCurrency($this->context->cookie);
...
Later in the same function, we have this condition (415):
if ( ... $currency->id != $cart->id_currency) {
...
$cart->update();
}
Which could explain why if the selected currency is the same as the current one, the checkout behaves differently (stay in the same step) than otherwise.
However... this function is insanely long and surely will take me some time before i really understand what is going on.