Func: WC() exists only in WC 2.1 making Shoppica incompatible with older versions.

ThemeBurn SupportForumsWordPress ThemesShoppica WordPress ThemeFunc: WC() exists only in WC 2.1 making Shoppica incompatible with older versions.

This topic has been marked as not resolved.

According to the documentation, Shoppica is compatible all the way back to WooCommerce 1.6, however since the usage of WC() on line 44 in functions.php, Any version below 2.1.0 will return:

Fatal error: Call to undefined function WC()

This happened when I decided to downgrade WooCommerce to 2.0.20 to keep my other addons functioning correctly.

http://docs.woothemes.com/wc-apidocs/function-WC.html

Either Shoppica needs to check for actual WooCommerce versions and use the appropriate class or update to reflect that only 2.1 and up is supported.

  • This reply was modified 3674 days ago by  GreenMelon.
April 26, 2014 at 2:44 pm #31610

Hello,

Unfortunatelly, it is not possible to check if your Woocommerce version is lower or bigger than 2.1, because we are limited to Woocommerce plugin API.

What addons doesnt work with version 2.1?

The only way is to use an older version of Shoppica before Woo 2.1 patch.

Best,
ThemeBurn team

April 30, 2014 at 6:16 pm #31674

Actually you can check what version of the plugin you have with two methods. See if the WC() class exists. Secondly you can peek into the woocommerce plugin folder and look at the version data.

However, that is not the problem, what I am saying is that you cannot use an older version of woocommerce below 2.1 with the current version of shoppica.

The functions.php in Shoppica specically calls WC()-> which only exists in Woocommerce 2.1 and throws a fatal exception if WC() does not exist.

And if I need to use an older version of Shoppica before the 2.1 patch, the advertisement should state that. Right now on Themeforest, you say you support 1.6, 2.0, and 2.1. Yet, there is no way to download an older version of the theme.

There was no addon incompatibility aside from WooCommerce and Shoppica, this is based on a fresh install.

  • This reply was modified 3670 days ago by  GreenMelon.
  • This reply was modified 3670 days ago by  GreenMelon.
  • This reply was modified 3670 days ago by  GreenMelon.
April 30, 2014 at 6:20 pm #31677

Hi,

We know how to get the Woocommerce version but it is not possible to have two woocommerce folders inside theme folder.

Please contact us on quote@themeburn.com and we will sent you older version.

Best,
ThemeBurn team

April 30, 2014 at 6:40 pm #31684
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.