' . '
' . __( 'The Affiliates Ecwid Light plugin is activated but not operative.', AFF_ECWID_LIGHT_PLUGIN_DOMAIN ) . '
' . '' . __( 'The Affiliates Ecwid integration is installed, you must deactivate the Affiliates Ecwid Light plugin and adjust the ION Cannon endpoint URL in your Ecwid account under System Settings > API to use the new URL provided under Affiliates > Ecwid.', AFF_ECWID_LIGHT_PLUGIN_DOMAIN ) . '
' . ''; } } /** * Verifies plugin dependencies, Affiliates (or Pro/Enterprise). * * @param boolean $disable If true, disables the plugin if dependencies are not met. Defaults to false. * @return true if dependencies are met, otherwise false. */ public static function check_dependencies( $disable = false ) { $result = true; $active_plugins = get_option( 'active_plugins', array() ); if ( is_multisite() ) { $active_sitewide_plugins = get_site_option( 'active_sitewide_plugins', array() ); $active_sitewide_plugins = array_keys( $active_sitewide_plugins ); $active_plugins = array_merge( $active_plugins, $active_sitewide_plugins ); } $affiliates_is_active = in_array( 'affiliates/affiliates.php', $active_plugins ) || in_array( 'affiliates-pro/affiliates-pro.php', $active_plugins ) || in_array( 'affiliates-enterprise/affiliates-enterprise.php', $active_plugins ); if ( !$affiliates_is_active ) { self::$admin_messages[] = "'; $output .= sprintf( __( 'Your store %s has been successfully authenticated.', AFF_ECWID_LIGHT_PLUGIN_DOMAIN ), stripslashes( wp_filter_nohtml_kses( $store_name ) ) ); $output .= '
'; } else { $output .= '' . __( 'Please check your settings, the store name could not be determined.', AFF_ECWID_LIGHT_PLUGIN_DOMAIN ) . '
'; } $currency = isset( $profile->currency ) ? $profile->currency : null; if ( $currency !== null ) { if ( empty( $options[self::CURRENCY] ) || ( $options[self::CURRENCY] != $currency ) ) { $options[self::CURRENCY] = $currency; update_option( self::PLUGIN_OPTIONS, $options ); } $output .= ''; $output .= sprintf( __( 'Currency : %s', AFF_ECWID_LIGHT_PLUGIN_DOMAIN ), $currency ); $output .= '
'; } else { $output .= '' . __( 'Please check your settings, the store currency could not be determined.', AFF_ECWID_LIGHT_PLUGIN_DOMAIN ) . '
'; } } else { $output .= '' . __( 'Please check your settings, the store could not be authenticated.', AFF_ECWID_LIGHT_PLUGIN_DOMAIN ) . '
'; } } else { $output .= ''; $output .= __( 'You still need to provide the details to authenticate your store.', AFF_ECWID_LIGHT_PLUGIN_DOMAIN ); $output .= '
'; } $output .= '