- Posts: 10
- Thank you received: 0
currency only changed when next product is viewed
10 years 3 months ago #247566
by wdaf
currency only changed when next product is viewed was created by wdaf
-- url of the page with the problem -- :
www.cyan-adventures.com/en/adventures/mo...labuyoc-canyoneering
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.1
-- PHP version -- : 6.0
Hello,
weird behavior of the currency switcher
Short: currency is not changed on the displayed page, but only on the next page i visit
Long:
I go to a product:
example: www.cyan-adventures.com/en/adventures/mo...alegria-canyoneering
i switch the currency to PHP and nothing changes. Still US$. Then i switch to a different product:
www.cyan-adventures.com/en/adventures/mo...labuyoc-canyoneering
and then this product is displayed in PHP.
So the correct currency is not changed on the displayed page, but only on the next page i visit.
Tested in Chrome and Firefox and IE.
?
Thx, Wolfgang
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.1
-- PHP version -- : 6.0
Hello,
weird behavior of the currency switcher
Short: currency is not changed on the displayed page, but only on the next page i visit
Long:
I go to a product:
example: www.cyan-adventures.com/en/adventures/mo...alegria-canyoneering
i switch the currency to PHP and nothing changes. Still US$. Then i switch to a different product:
www.cyan-adventures.com/en/adventures/mo...labuyoc-canyoneering
and then this product is displayed in PHP.
So the correct currency is not changed on the displayed page, but only on the next page i visit.
Tested in Chrome and Firefox and IE.
?
Thx, Wolfgang
Please Log in or Create an account to join the conversation.
10 years 3 months ago #247570
by nicolas
Replied by nicolas on topic currency only changed when next product is viewed
Hi,
The behavior is actually more complex and reveils what is the problem.
When you change the currency on a page, it doesn't change the page. When you go on another page, you get the new currency. But if you change again the currency to a third oneon that new page, it doesn't change the page, but also, if you go back to the first page, you still see the first currency, and if you go to a third page to get the third currency selected.
So that means:
- That the currency switch is taken into account by the system.
- Once you display a page in one currency, the the currency last chosen won't be taken into account anymore.
This all points to the fact that you have caching on your website or web server and that once a page is displayed, it is cached by the caching system and thus if you change something on the page, it is not displayed on the page as the page comes from the cache even though it is taken into account by the system.
HikaShop clears the Joomla cache when you change the currency with the HikaShop currency switcher, so I gues that you didn't activate the Joomla cache but that you have some other caching system on your website/server.
The behavior is actually more complex and reveils what is the problem.
When you change the currency on a page, it doesn't change the page. When you go on another page, you get the new currency. But if you change again the currency to a third oneon that new page, it doesn't change the page, but also, if you go back to the first page, you still see the first currency, and if you go to a third page to get the third currency selected.
So that means:
- That the currency switch is taken into account by the system.
- Once you display a page in one currency, the the currency last chosen won't be taken into account anymore.
This all points to the fact that you have caching on your website or web server and that once a page is displayed, it is cached by the caching system and thus if you change something on the page, it is not displayed on the page as the page comes from the cache even though it is taken into account by the system.
HikaShop clears the Joomla cache when you change the currency with the HikaShop currency switcher, so I gues that you didn't activate the Joomla cache but that you have some other caching system on your website/server.
Please Log in or Create an account to join the conversation.
Time to create page: 0.046 seconds