add if (class_exists('Woocommerce')) for shop option