On site messaging not showing on cart and product pages
-
Hello,
After updating the plugin we no longer see the on site messages in cart and product pages. Why is this happening?
The only think we have added in functions.php is the following snippet
add_filter('kosm_locale', function($locale) { //product page
? ? $my_current_lang = apply_filters( 'wpml_current_language', NULL );
? ? if($my_current_lang == 'el'){
? ? ? ? return 'el-GR';
? ? }else{
? ? ? ? return 'en-GR';
? ? }
});
add_filter('kp_locale', function($locale) { //checkout page
? ? $my_current_lang = apply_filters( 'wpml_current_language', NULL );
? ? if($my_current_lang == 'el'){
? ? ? ? return 'el-GR';
? ? }else{
? ? ? ? return 'en-GR';
? ? }
});Thanks!
- You must be logged in to reply to this topic.