Hey there,
I have an issue with my website where the language switcher and currency switcher work on a width of >639px but stop working under that width.
Website: www.varietyofcannabis.com
How to recreate:
Open the menu on the left, navigate to settings, try to change the currency or language.
Help would be appreciated!
Kind regards,
Giamo
Looks like its theme issue !
Can you please enable Luma theme which is magento 's default and then check ? the same issue is happening or not ?
Hey @Manthan Dave
Thanks for the reply and it looks like it fixes the issue. I do have to use the other theme however, do you see what's wrong with it by any chance?
Well i understand , but without seeing theme code its unable to predict what exact issue is with the theme !
But as you mention that its work with Luma theme , so issue is with theme only , you need to contact theme developer or create a support ticket where you purchased theme , they will definitely helps you in this case
Alright I understand, thanks for your help!
I didn't buy the theme from anyone, it's developed where I work and it's my task as intern to fix it. Any recommendations of where to look? It seems as the clickable link still executes the href function just doesn't do anything with the data-post. I made sure the languages and currency.phtml files are up to date and they also work on a larger screen.
My dataPost.js should also be okay, any other files that are worth looking into?
If you can't help me any further I perfectly understand since it's quite a lot to ask, and you're unable to see the code yourself
Glad to know that you understand the issue ,sure i am checking the issues which you mention and will give you response for the same asap
Happy to help
Got you the Kuddo's !
Perhaps if you got time it's worth looking into my edit?
Actually i have checked with magento 2 luma theme , on mobile its passing like below code :
{"action":"http:\/\/mywebsitedomain\/directory\/currency\/switch\/","data":{"currency":"USD","uenc":"aHR0cDovLzEwLjE2LjE2LjE3Ni9tbTIyMy8,"}}">USD - US Dollar</a>
But in your case , in your theme its passing straight forward same like on desktop version in responsive(mobile as well).
Can you please post code ? what customization exactly you have done on this header part ? so its helps me to troubleshoot the issue !
You have to check for your current theme's vendor/magento/module-store/view/frontend/templates/switch/stores.phtml.
This file is responsible for getting your language switcher or you need to compare your stores.phtml file of theme with core file.