• Resolved tunemywp

    (@tunemywp)


    Hello Plugin Developers,

    [06-Aug-2019 23:21:45 UTC] PHP Fatal error: Call to undefined method WOOCS::woocs_convert_price() in /xxxx/xxxx/public_html/wp-content/plugins/pw-woocommerce-gift-cards/pw-gift-cards.php on line 425

    function pwgc_to_current_currency( $amount ) {
    // WooCommerce Currency Switcher by realmag777
    if ( isset( $GLOBALS[‘WOOCS’] ) ) {
    return $GLOBALS[‘WOOCS’]->woocs_convert_price( $amount );
    }

    I’m facing some issue and didn’t get any solution bacause i’m unable to find the declaration of woocs_convert_price function in the plugin.

    Lemme know if you have any solution available for this.

    -Zahid

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pimwick

    (@pimwick)

    The error stems from an integration with the WooCommerce Currency Switcher plugin by realmag777. We check for their global object (WOOCS) and use methods from this.

    However, if the global object does not have the appropriate methods then you will get this error.

    We released a fix in v1.77, please update and let me know if it takes care of the issue. To get the update:

    1. Log into your WordPress Admin area.
    2. Click on Plugins -> Installed plugins.
    3. Scroll down to PW WooCommerce Gift Cards and click “Check for updates.”
    4. The page will refresh, then scroll back down and click on “Update.”

    Plugin Author pimwick

    (@pimwick)

    Haven’t heard back so I’m assuming this update took care of the error for you. If you need anything else just let us know!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce Currency Switcher’ is closed to new replies.