oborvanec
Forum Replies Created
-
I opted to shortcut the currency look up by just directly assigning the ID of the default currency in our e-store (if it is not possible to get it from the cookie).
After live testing, it turned out that determining the default currency is not that simple for users who visit the page for the first time, since the yay_currency_widget cookie may not exist yet.
Currently, I have tried to get the default currency by using static methods from the
yaycurrency-pro/includes/Helpers/YayCurrencyHelper.phpfile.These methods are:
get_id_selected_currencydetect_current_currencyget_apply_currencyAt first, calling them from inside the
breeze_currency_switcher_cache()function in thebreeze/inc/functions.phpfile seemed problematic because thebreeze_currency_switcher_cache()method is executed very early in the WordPress loading process. The methods fromYayCurrencyHelperrely on WordPress functions such assanitize_key,get_post,get_option, etc., which are not available yet at that stage (at least in my setup).I cloned a definition of the
sanitize_keymethod insidebreeze_currency_switcher_cache()to make it possible to callget_id_selected_currency(). However, it still returned a value only when the yay_currency_widget cookie was not empty.Eventually, I figured out that the
get_apply_currency()method is the one that reliably determines the user’s currency, regardless of whether the cookie is set. Theget_apply_currency()method also uses the value from theyay_currency_auto_select_currency_by_countriesoption to detect the currency based on the user’s country/IP. However, it still cannot be called unlessget_option()is available in the execution context.Thanks! I’m looking towards it.
Thanks, I did so
Forum: Plugins
In reply to: [CDEKDelivery] Карта черно-белая и без пунктов выдачиСпасибо, нашел причину – конфлит со стилем в теме.
Вот этот силь портил погоду:
* {
position: relative;
}
Вам лучше для .ymaps3x0–marker указать { position: absolute !important;} или сделать более весомый CSS селектор
We faced the same problem on 1.6.18. The rollback to 1.6.16 helped. Hope they will solve the problem at the next update.
Hope they’ll apply it in the next update
I think this problem is related to what I posted earlier:
https://ww.wp.xz.cn/support/topic/there-is-a-bug-in-matthiasmullie-minify/The problem is in the matthiasmullie-minify vendor.
If they still did not solve it, you can follow this issue and try to fix it yourself:
https://github.com/matthiasmullie/minify/issues/371For me it solved the problem.
Yes it does. After we activated WP-Optimize on our production site it broke the site’s template.