Support

Content of the article

You need to log-in to create request (topic) to the support

Product is added to basket again after switching currency

(new from 01-07-2019)

I've added to the Currency Switcher on the cart page. When users add an item to their basket and then want to switch currency, the item is being added again, because the dropdown points to /cart/?&add-to-cart=1821&currency=EUR.

Is there a fix for this?

 

Thanks in advance,

pete

Hello

Unfortunately it doesn’t depend on my plugin, it just reloads the page.

You  can do a test: Disable  my plugin,  add any product  to the basket and  refresh this  page.

Try  this  option - https://c2n.me/42VB3TM.png

Hi there, that option is enabled, but I think another plugin probably got on the way.

I sorted it for now by adding ..

string_of_get = string_of_get.replace('add-to-cart=', '');

.. to ./js/front.js (line #338).

It's not pretty, but it does the trick.

pete

Hello Pete

 

Great!

Is it something you might considering adding to your code so stuff doesn't break when my customer runs an update of the plugin?

Hello

I will pass this to the developers. They will test it. But I do not promise that it will be added to the new version

Alright, thanks. Fingers crossed :)

 

cheers,

pete

Hello

Welcome;)