• Resolved hamasataccessoriesllc

    (@hamasataccessoriesllc)


    My currency switcher is not working in mobile. In desktop its working good but when you take it in mobile and switch currency its not working

    The page I need help with: [log in to see the link]

Viewing 10 replies - 16 through 25 (of 25 total)
  • Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Great, let me know if it helps.

    Thread Starter hamasataccessoriesllc

    (@hamasataccessoriesllc)

    Hi i check with server hosting services and they run tests removing cache and some other tests but the issue is still there and i deactivated all plugins and active it by one by one. when I active woo commerce and wpml the issue is there. The hosting side said that its not an issue related to server or cache, They said its from the plugin side

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Unfortunately, I can’t be of any help. If the switcher works in your testing server but it does not in your production one, the only difference is the server and we can’t investigate there.

    Thread Starter hamasataccessoriesllc

    (@hamasataccessoriesllc)

    From their side they said its working while we switch and manually refresh the website but not working at the moment of switching

    Thread Starter hamasataccessoriesllc

    (@hamasataccessoriesllc)

    I made some further tests and it appears that the issue was caused by these rules in .htaccess:

    <IfModule mod_headers.c>
    <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
    Header set Access-Control-Allow-Origin "*"
    </FilesMatch>
    </IfModule>
    # BEGIN WordPress
    # The directives (lines) between "BEGIN WordPress" and "END WordPress" are
    # dynamically generated, and should only be modified via WordPress filters.
    # Any changes to the directives between these markers will be overwritten.
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access plus 24 hours"
    ExpiresByType image/jpeg "access plus 24 hours"
    ExpiresByType image/gif "access plus 24 hours"
    ExpiresByType image/png "access plus 24 hours"
    ExpiresByType text/css "access plus 24 hours"
    ExpiresByType application/pdf "access plus 1 week"
    ExpiresByType text/javascript "access plus 24 hours"
    ExpiresByType text/html "access plus 2 hours"
    ExpiresByType image/x-icon "access plus 1 year"
    ExpiresDefault "access plus 24 hours"
    </IfModule>
    Options -Indexes
    <IfModule mod_headers.c>
    Header set X-Endurance-Cache-Level "2"
    Header set X-nginx-cache "WordPress"
    </IfModule>

    When they are removed the currency changes.

    You may check with the developer of the plugin why they interfere with the functionality.

    This is the reply from the server hosting side, please check this and let me know if this is helpful

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Thank you for your feedback, I think it was a cache issue as initially suspected. I would point to these lines:

    <IfModule mod_headers.c>
    Header set X-Endurance-Cache-Level "2"
    Header set X-nginx-cache "WordPress"
    </IfModule>

    It is known that our switcher can conflict with some cache systems as explained here:
    https://wpml.org/errata/caching-plugins-may-cause-issues-with-wcml-multi-currency-settings/

    If you remove those lines, it stars working correctly?

    Thread Starter hamasataccessoriesllc

    (@hamasataccessoriesllc)

    so you need me to remove those lines ?

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    Yes, please. Could you give it a try?

    Thread Starter hamasataccessoriesllc

    (@hamasataccessoriesllc)

    Thank you so much now its working in both desktop and mobile

    Plugin Support Andrés Cifuentes

    (@andrescifuentesr)

    I’m glad to know that is working!
    Have a nice day.

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘My currency switcher is not working in mobile’ is closed to new replies.