PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

$WOOCS->set_currency('USD') error

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi! I have this line in the functions.php file $WOOCS->set_currency('USD'); in my theme and it shows this error:

Fatal error: Uncaught Error: Call to a member function set_currency() on bool in /public_html/wp-content/themes/mission-news/woocommerce/functions.php:90 Stack trace: #0 /public_html/wp-includes/class-wp-hook.php(307): change_calculated_total(12, Object(WC_Cart)) #1 /public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters(12, Array) #2 /public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(877): apply_filters('woocommerce_cal...', 12, Object(WC_Cart)) #3 /public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(146): WC_Cart_Totals->calculate_totals() #4 /public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(134): WC_Cart_Totals->calculate() #5 /public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1398): WC_Cart_Totals->__construct(Object(WC_Cart)) #6 /public_html/wp-content/plugins/woocommerce-one-page-che in /public_html/wp-content/themes/mission-news/woocommerce/functions.php on line 90

It was working yesterday. Thanks!

 

hello

It looks like you are calling this function when the plugin is disabled (not active or not connected yet)

Ask the developer who made it for you to check the code