Title: Compatibility
Last modified: October 8, 2019

---

# Compatibility

 *  [Philip Rosing](https://wordpress.org/support/users/vorodk/)
 * (@vorodk)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/compatibility-170/)
 * Hi,
 * I have discovered an issue when using Polylang or other multilingual plugins.
   
   The font-icons cannot be loaded on some servers due to CORS restrictions.
 * The issue is that the `XOO_WSC_URL` constant is being defined before the plugins
   have had a chance to filter the siteurl in `plugins_url()`. This means that the`
   XOO_WSC_URL` constant will contain the primary URL and this is causing the issue
   since fonts often come with CORS restrictions.
 * The fix/workaround for it? Either skip using the `XOO_WSC_URL` constant or move`
   define("XOO_WSC_URL", plugins_url('/',__FILE__));` inside an `add_action('init',...)`
   function to ensure the rest of the plugins have a chance to add their filters.
 * —
 * This is currently only an issue with the font CSS file so changing the following
   line in class-xoo-wsc-public.php:60:
 * `wp_enqueue_style( $this->xoo_wsc.'-fonts', XOO_WSC_URL . 'lib/fonts/xoo-wsc-
   fonts.css', array(), $this->version, 'all' );`
    => `wp_enqueue_style( $this->
   xoo_wsc.'-fonts', '/wp-content/plugins/woocommerce-side-cart-premium/lib/fonts/
   xoo-wsc-fonts.css', array(), $this->version, 'all' );`
 * —
 * **How to test**
 * Activate 2+ languages on a website that contains the plugin and woocommerce.
   
   Go to another language than the primary one. These languages have to use different
   domains (ex: website.com & website.de) since it’s a Cross Domain issue. So using/
   en/ or /de/ will not cause it.
 * This should cause CORS issues that ends up in the icons not being loaded.
    -  This topic was modified 6 years, 6 months ago by [Philip Rosing](https://wordpress.org/support/users/vorodk/).
      Reason: Wrong path in quick-fix

The topic ‘Compatibility’ is closed to new replies.

 * ![](https://ps.w.org/side-cart-woocommerce/assets/icon-256x256.gif?rev=3217170)
 * [Side Cart Woocommerce | Woocommerce Cart](https://wordpress.org/plugins/side-cart-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/side-cart-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/side-cart-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/side-cart-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/side-cart-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/side-cart-woocommerce/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Philip Rosing](https://wordpress.org/support/users/vorodk/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/compatibility-170/)
 * Status: not a support question