Title: oborvanec's Replies | WordPress.org

---

# oborvanec

  [  ](https://wordpress.org/support/users/oborvanec/)

 *   [Profile](https://wordpress.org/support/users/oborvanec/)
 *   [Topics Started](https://wordpress.org/support/users/oborvanec/topics/)
 *   [Replies Created](https://wordpress.org/support/users/oborvanec/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/oborvanec/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/oborvanec/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/oborvanec/engagements/)
 *   [Favorites](https://wordpress.org/support/users/oborvanec/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Breeze Cache] An important update to support YaYCurrency multi-currency plugin](https://wordpress.org/support/topic/an-important-update-to-support-yaycurrency-multi-currency-plugin/)
 *  Thread Starter [oborvanec](https://wordpress.org/support/users/oborvanec/)
 * (@oborvanec)
 * [2 months, 3 weeks ago](https://wordpress.org/support/topic/an-important-update-to-support-yaycurrency-multi-currency-plugin/#post-18917574)
 * 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).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Breeze Cache] An important update to support YaYCurrency multi-currency plugin](https://wordpress.org/support/topic/an-important-update-to-support-yaycurrency-multi-currency-plugin/)
 *  Thread Starter [oborvanec](https://wordpress.org/support/users/oborvanec/)
 * (@oborvanec)
 * [2 months, 3 weeks ago](https://wordpress.org/support/topic/an-important-update-to-support-yaycurrency-multi-currency-plugin/#post-18917569)
 * 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.php` file.
 * These methods are:
 * `get_id_selected_currency`
   `detect_current_currency``get_apply_currency`
 * At first, calling them from inside the `breeze_currency_switcher_cache()` function
   in the `breeze/inc/functions.php` file seemed problematic because the `breeze_currency_switcher_cache()`
   method is executed very early in the WordPress loading process. The methods from`
   YayCurrencyHelper` rely on WordPress functions such as `sanitize_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_key` method inside `breeze_currency_switcher_cache()`
   to make it possible to call `get_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. The `get_apply_currency()` method also uses the value from the `yay_currency_auto_select_currency_by_countries`
   option to detect the currency based on the user’s country/IP. However, it still
   cannot be called unless `get_option()` is available in the execution context.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Breeze Cache] An important update to support YaYCurrency multi-currency plugin](https://wordpress.org/support/topic/an-important-update-to-support-yaycurrency-multi-currency-plugin/)
 *  Thread Starter [oborvanec](https://wordpress.org/support/users/oborvanec/)
 * (@oborvanec)
 * [2 months, 3 weeks ago](https://wordpress.org/support/topic/an-important-update-to-support-yaycurrency-multi-currency-plugin/#post-18912774)
 * Thanks! I’m looking towards it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Spam protection, Honeypot, Anti-Spam by CleanTalk] The plugin causes a custom jQuery ajax fail by no reason sometimes](https://wordpress.org/support/topic/the-plugin-causes-a-custom-jquery-ajax-fail-by-no-reason-sometimes/)
 *  Thread Starter [oborvanec](https://wordpress.org/support/users/oborvanec/)
 * (@oborvanec)
 * [7 months ago](https://wordpress.org/support/topic/the-plugin-causes-a-custom-jquery-ajax-fail-by-no-reason-sometimes/#post-18786719)
 * Thanks, I did so
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CDEKDelivery] Карта черно-белая и без пунктов выдачи](https://wordpress.org/support/topic/%d0%ba%d0%b0%d1%80%d1%82%d0%b0-%d1%87%d0%b5%d1%80%d0%bd%d0%be-%d0%b1%d0%b5%d0%bb%d0%b0%d1%8f-%d0%b8-%d0%b1%d0%b5%d0%b7-%d0%bf%d1%83%d0%bd%d0%ba%d1%82%d0%be%d0%b2-%d0%b2%d1%8b%d0%b4%d0%b0%d1%87%d0%b8/)
 *  Thread Starter [oborvanec](https://wordpress.org/support/users/oborvanec/)
 * (@oborvanec)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/%d0%ba%d0%b0%d1%80%d1%82%d0%b0-%d1%87%d0%b5%d1%80%d0%bd%d0%be-%d0%b1%d0%b5%d0%bb%d0%b0%d1%8f-%d0%b8-%d0%b1%d0%b5%d0%b7-%d0%bf%d1%83%d0%bd%d0%ba%d1%82%d0%be%d0%b2-%d0%b2%d1%8b%d0%b4%d0%b0%d1%87%d0%b8/#post-18277567)
 * Спасибо, нашел причину – конфлит со стилем в теме.
 * Вот этот силь портил погоду:
 * * {
 *  position: relative;
 * }
 * Вам лучше для .ymaps3x0–marker указать { position: absolute !important;} или 
   сделать более весомый CSS селектор
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Elementor Website Builder - more than just a page builder] Code like /*! elementor – v3.17.0 – 01-11-2023 */ appears on the WooCommerce](https://wordpress.org/support/topic/code-like-elementor-v3-17-0-01-11-2023-appears-on-the-woocommerce-2/)
 *  [oborvanec](https://wordpress.org/support/users/oborvanec/)
 * (@oborvanec)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/code-like-elementor-v3-17-0-01-11-2023-appears-on-the-woocommerce-2/#post-17243415)
 * 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance] PHP 8.0 compatibility issue breaks minification](https://wordpress.org/support/topic/php-8-0-compatibility-issue-breaks-minification/)
 *  Thread Starter [oborvanec](https://wordpress.org/support/users/oborvanec/)
 * (@oborvanec)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/php-8-0-compatibility-issue-breaks-minification/#post-14557668)
 * Hope they’ll apply it in the next update
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance] Minification problem with calc CSS](https://wordpress.org/support/topic/minification-problem-with-calc-css/)
 *  [oborvanec](https://wordpress.org/support/users/oborvanec/)
 * (@oborvanec)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/minification-problem-with-calc-css/#post-14528691)
 * I think this problem is related to what I posted earlier:
    [https://wordpress.org/support/topic/there-is-a-bug-in-matthiasmullie-minify/](https://wordpress.org/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/371](https://github.com/matthiasmullie/minify/issues/371)
 * For me it solved the problem.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance] There is a bug in matthiasmullie / minify](https://wordpress.org/support/topic/there-is-a-bug-in-matthiasmullie-minify/)
 *  Thread Starter [oborvanec](https://wordpress.org/support/users/oborvanec/)
 * (@oborvanec)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/there-is-a-bug-in-matthiasmullie-minify/#post-14364462)
 * Yes it does. After we activated WP-Optimize on our production site it broke the
   site’s template.

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