首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >即使没有请求,客人结帐也会创建帐户。

即使没有请求,客人结帐也会创建帐户。
EN

Stack Overflow用户
提问于 2020-01-15 18:54:20
回答 1查看 952关注 0票数 3

当来宾用户签出并且不选择创建帐户时,帐户将被创建。此外,当用户试图用他用于购买的电子邮件“注册”他的帐户时,系统甚至在不请求密码的情况下登录。

这里我用截图展示了我所采取的步骤。

失败的解决方案

  • 禁用所有插件,只剩下Woocommerce和商店主题启用。
  • Woocommerce > Settings > Account & Privacy中启用/禁用“允许客户在结帐期间登录现有帐户”选项。
  • 检查了这个答案,但我不会出售任何订阅产品。

实例信息

我在Woocommerce > Settings > Account & Privacy中启用的其他配置如下:

  • 允许客户在没有账户的情况下下订单
  • 允许客户在结帐期间创建帐户。
  • 允许客户在“我的帐户”页面上创建一个帐户
  • 在创建帐户时,根据客户的姓名、姓氏或电子邮件自动生成客户的帐户用户名。
  • 创建帐户时,自动生成帐户密码。

下面是有关WordPress生产实例的信息(我还在Windows实例中测试了相同的错误):

代码语言:javascript
复制
### wp-core ###

version: 5.3.2
site_language: en_US
user_language: en_US
timezone: +01:00
permalink: /%year%/%monthnum%/%day%/%postname%/
https_status: true
user_registration: 0
default_comment_status: open
multisite: false
user_count: 11
dotorg_communication: true

### wp-active-theme ###

name: Storefront Child Theme (storefront-child)
version: 1.0.0
author_website: (undefined)
parent_theme: Storefront (storefront)
theme_features: post-thumbnails, automatic-feed-links, custom-logo, menus, html5, custom-background, custom-header, site-logo, title-tag, customize-selective-refresh-widgets, wp-block-styles, align-wide, editor-styles, editor-font-sizes, editor-style, responsive-embeds, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, starter-content, widgets

### wp-parent-theme ###

name: Storefront (storefront)
version: 2.5.3
author: Automattic
author_website: https://woocommerce.com/

### wp-themes-inactive (1) ###

Twenty Twenty: version: 1.0, author: the WordPress team (latest version: 1.1)

### wp-plugins-active (10) ###

Autoptimize: version: 2.5.1, author: Frank Goossens (futtta) (latest version: 2.6.1)
Contact Form 7: version: 5.1.5, author: Takayuki Miyoshi (latest version: 5.1.6)
GDPR Cookie Consent: version: 1.8.2, author: WebToffee
TeraWallet: version: 1.3.11, author: WCBeginner
Tidio Chat: version: 4.2.1, author: Tidio Ltd.
WooCommerce: version: 3.8.0, author: Automattic (latest version: 3.8.1)
WooCommerce Admin: version: 0.22.0, author: WooCommerce (latest version: 0.24.0)
WooCommerce Stripe Gateway: version: 4.3.1, author: WooCommerce
YITH WooCommerce Social Login: version: 1.3.7, author: YITH (latest version: 1.3.9)
Yoast SEO: version: 12.5.1, author: Team Yoast (latest version: 12.8)

### wp-plugins-inactive (3) ###

All-in-One WP Migration: version: 7.10, author: ServMask (latest version: 7.14)
Order Delivery Date for WooCommerce (Lite version): version: 3.10, author: Tyche Softwares
Query Monitor: version: 3.4.0, author: John Blackbourn (latest version: 3.5.2)

### wp-media ###

image_editor: WP_Image_Editor_GD
imagick_module_version: Not available
imagemagick_version: Not available
gd_version: bundled (2.1.0 compatible)
ghostscript_version: unknown

### wp-server ###

server_architecture: Linux 2.6.32-754.14.2.el6.x86_64 x86_64
httpd_software: Apache
php_version: 7.0.33 64bit
php_sapi: cgi-fcgi
max_input_variables: 8000
time_limit: 30
memory_limit: 512M
max_input_time: 180
upload_max_size: 2M
php_post_max_size: 8M
curl_version: 7.67.0 OpenSSL/1.0.2t
suhosin: false
imagick_availability: false
htaccess_extra_rules: true

### wp-database ###

extension: mysqli
server_version: 10.3.21-MariaDB
client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_MAX_MEMORY_LIMIT: 512M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_LOCAL_DEV: undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined

### wp-filesystem ###

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-02-25 18:25:38

乔伊(@jricketts4 4)在woocommerce论坛中的回答

你好@pirralhobat 我花了一分钟才弄清楚你的报告,但我终于明白了。我们在这里看到的是预期的行为,实际上不需要你用截图记录的前两个步骤。 发生这种情况的原因是三种设置的组合:

  • 允许客户在“我的帐户”页面上创建一个帐户
  • 在创建帐户时,根据客户的姓名、姓氏或电子邮件自动生成客户的帐户用户名。
  • 创建帐户时,自动生成帐户密码。

仅禁用以下一项将“修复”您不想看到的问题:

  • 允许客户在“我的帐户”页面上创建一个帐户
  • 创建帐户时,自动生成帐户密码。

( a)您将不允许您的客户通过“我的帐户”页面注册,或者( b)您将不会在注册期间自动生成密码(要求您的客户输入自己的密码)。

如果这一切都没有意义,请告诉我!

问题确实是对组合的解释。

最后,我禁用了“创建帐户时,自动生成帐户密码”,并添加代码来进行电子邮件验证,从而验证过去使用该网站进行采购的用户的有效性。这最终会阻止任何试图使用以前用于购买的电子邮件创建帐户的用户。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59757927

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档