• Resolved MWB

    (@lenspilot)


    hello!
    first of all: great work! amazing plugin! thanks a lot! ??
    i am now trying to get it to work with my multilanguage installation using WPML. i have 2 languages: english and german. so i tried to alter the url of the app store like this in the functions.php:

    function wpappbox_get_appstore_url() {
    if ( ICL_LANGUAGE_CODE=='en' ) : return('https://itunes.apple.com/gb/lookup?id={APPID}');
    endif;
    if ( ICL_LANGUAGE_CODE=='de' ) : return('https://itunes.apple.com/de/lookup?id={APPID}');
    endif;
    }

    basically it works, but just the first time – i suppose because the url’s are cached as well? do you know any workaround for this situation? i would consider just turning of the caching for the moment. is that an option and how would i do it?

    many thanks for any help! ??

    https://www.ads-software.com/plugins/wp-appbox/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marcelismus

    (@marcelismus)

    Yes App-URLs are cached. Currently, there are no plans to change this.

    A workaround would be to disable the cache, just search for the function “is_cached” (inc/getappinfo.class.php) and replace the function with this:

    function is_cached($id) {
    return false;
    }

    But it is not recommended, simply because of the much longer loading times.

    Thread Starter MWB

    (@lenspilot)

    many thanks for your help! it worked like this ??

    yes, i know loading times will be worse but i really need it to be multilanguage. there are some app store plugins out there, but yours made the best impression to me!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP-Appbox and WPML (multi-language)’ is closed to new replies.