• Resolved marwanhalawi

    (@marwanhalawi)


    Hello,

    How do i disable wp optimize from caching the WPML multicurrency plugin?

    I can’t be the only one who is having problems with my default prices being modified automatically even though i do not want them to be. If anyone has gone through this problem and found a solution. I would be grateful.

    Thank you in advance!

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support pbevanudp

    (@pbevanudp)

    Hello,

    I note in the WPML documentation some general incompatibility with caching plugins, may I ask which version of the multicurrency plugin you are running?

    Thread Starter marwanhalawi

    (@marwanhalawi)

    Woocommerce Multilingual & Multicurrency 5.2.1 released on october 09.2023.

    Plugin Support pbevanudp

    (@pbevanudp)

    Thank you, please could you try:

    • Excluding pages where multicurrency is being used
    • Excluding the wp_woocommerce_session cookie

    in WP-Optimize > Cache > Advanced Settings

    Thread Starter marwanhalawi

    (@marwanhalawi)

    The only page that has multicurrency problems is the front page. The product and category pages are unaffected.

    How do i exclude the front page? What exactly do i type in the advanced settings? Is there a specific code or title i should mention?

    And is it good to exclude the front page from caching cookies?

    Plugin Support pbevanudp

    (@pbevanudp)

    To exclude the front page from the cache you can use a conditional such as is_front_page in Cache > Advanced settings > Conditional tags to exclude from caching as per this screenshot https://prnt.sc/UTYHE7e-EEV1 – This excludes the front page not the wp_woocommerce_session cookie which can be excluded in the Cookies which, if present, will prevent caching section.

    WPML Multi Currency seem to recommend excluding all currency pages from the cache along with the aforementioned cookie for compatibility purposes.

    Thread Starter marwanhalawi

    (@marwanhalawi)

    -Regarding Excluding pages where multicurrency is being used

    All my product pages are using multicurrency but only the front page is having synchronization problems.

    Regarding Excluding the wp_woocommerce_session cookie

    I typed wp_woocommerce_session in the List of cookies that will prevent caching when set. I am not sure if that is what you meant, should that help?

    Again thank you for taking time to answer my questions.

    Plugin Support vupdraft

    (@vupdraft)

    I checked your other pages, and it does look like there are issues on your other pages: https://snipboard.io/0HlG7D.jpg

    I would also exclude this cookie: https://snipboard.io/6PLOlN.jpg

    Thread Starter marwanhalawi

    (@marwanhalawi)

    I added the second cookie you mentioned (wp-wpml_current_language) I am not sure if it is the right code or not because yours also has “hu” at the end and i do not know where to add the “hu”. The first code seems to have fixed my problem. The prices haven’t changed on the front page since, thank you very much!

    Plugin Support vupdraft

    (@vupdraft)

    Hi,

    If the first option has fixed your issue then I would stick with that!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘WPML multicurrency compatibility’ is closed to new replies.