Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter icarleug

    (@icarleug)

    It works! Thank you, now I can add an option that works without me having my base currency set to USD. ??

    Best Regards,
    Andreas

    Thread Starter icarleug

    (@icarleug)

    Hello!

    It is still a bit problematic in that it filters the data before displaying it in input fields and textareas, but then don’t merge it before updating it, removing any language tags on non-supported fields (and leaving only the current language).

    For example, I use a non-supported SEO plugin that adds textareas to all admin pages.
    if I write [:sv]S?koptimering[:en]Search engine optimization[:] in the box and update, the value is saved and it is automatically translated to my current language.
    As I switch language it switches between the texts I inputed.
    However, if I press update again the current language is used as the textarea value and thus set without tag, switching language now only shows one value for all languages.

    I know it is not supported without proper configuration or integration, but if it changes the value upon load it would be nice if it is able to save it as well, or at least present it without translation so it can be edited manually.

    Best Regards,
    Andreas

    Thread Starter icarleug

    (@icarleug)

    It is probably better to leave it to prevent unwanted behaviour.
    Better to fix the page instead.

    Best Regards,
    Andreas

    Thread Starter icarleug

    (@icarleug)

    Found out that just changing it might not be the best solution after all, if there is an inline html-block somewhere with a language code (like the terms in flatsomes checkout) it will replace the entire page with just that code (so not optimal)…

    Best Regards,
    Andreas

    Thread Starter icarleug

    (@icarleug)

    Hello @valexar!

    Actually I first fixed it for v4 so I know exactly where the problem is, at least for those errors I found.
    Then I found out that there was a v5, so I updated and got the same problem but in reverse, so I reverted to the original file and all was well.

    File: /includes/integrations/class-wpm-acf.php

    689: $field_groups = acf_get_field_groups(array(
    Function does not exist by that name in v4, it is called api_acf_get_field_groups

    715: $fields = acf_get_fields( $field_group );
    Function does not exist by that name in v4, it is simply called get_fields

    745: if( acf_is_ajax('add-menu-item') ): ?>
    Function does not exist at all in any form as far as I could find, I commented out 745-757 to make it not return an error.

    Best Regards,
    Andreas

Viewing 5 replies - 1 through 5 (of 5 total)