跳到主要内容

WooCommerce 核心关键流程

我们已经确定了我们认为在 WooCommerce 核心中最关键的用户流程。这些流程将帮助我们聚焦并优先安排测试工作。它们还将帮助我们评估更改的影响和问题的优先级。

随着平台的发展,这些流程将持续演进,流程会被更新、添加或重新确定优先级。

Shopper critical flow areas

Merchant critical flow areas

Shopper - Shop

User TypeFlow AreaFlow NameTest File
ShopperShopSearch Storeshopper/shop-search-browse-sort.spec.js
ShopperShopBrowse by categoriesshopper/shop-search-browse-sort.spec.js
ShopperShopCan sort itemsshopper/shop-search-browse-sort.spec.js
ShopperShopAdd Simple Product to Cart (from shop page)shopper/cart.spec.js
ShopperShopDisplay shop catalogshopper/shop-search-browse-sort.spec.js
ShopperShopProducts by tagshopper/product-tags-attributes.spec.js
ShopperShopProducts by attributeshopper/product-tags-attributes.spec.js
ShopperShopUse product filtersshopper/shop-products-filer-by-price.spec.js

Shopper - Product

User TypeFlow AreaFlow NameTest File
ShopperProductAdd Simple Product to Cartshopper/product-simple.spec.js
ShopperProductAdd Grouped Product to Cartshopper/product-grouped.spec.js
ShopperProductVariable Product info updates depending on variationshopper/product-variable.spec.js
ShopperProductAdd Variable Product to Cartshopper/product-variable.spec.js
ShopperProductDisplay up-sell productproducts/product-linked-products.spec.js
ShopperProductDisplay related productsproducts/product-linked-products.spec.js
ShopperProductDisplay reviewsmerchant/product-reviews.spec.js
ShopperProductAdd reviewmerchant/product-reviews.spec.js
ShopperProductView product imagesshopper/product-simple.spec.js
ShopperProductView product descriptionsshopper/product-simple.spec.js

Shopper - Cart

User TypeFlow AreaFlow NameTest File
ShopperCartAdd to cart redirects to cart when enabledshopper/cart-redirection.spec.js
ShopperCartView cartshopper/cart.spec.js
ShopperCartUpdate product quantity within limitsshopper/cart.spec.js
ShopperCartRemove products from cartshopper/cart.spec.js
ShopperCartApply all coupon typesshopper/cart-coupons.spec.js
ShopperCartDisplay shipping options by addressshopper/calculate-shipping.spec.js
ShopperCartView empty cartshopper/cart.spec.js
ShopperCartDisplay correct taxshopper/cart-checkout-calculate-tax.spec.js
ShopperCartRespect coupon usage constraintsshopper/cart-checkout-coupons.spec.js
ShopperCartDisplay cross-sell productsproducts/product-linked-products.spec.js
ShopperCartProceed to checkoutshopper/checkout.spec.js

Shopper - Checkout

User TypeFlow AreaFlow NameTest File
ShopperCheckoutCorrect item in Order Reviewshopper/checkout.spec.js
ShopperCheckoutCan add shipping addressshopper/checkout.spec.js
ShopperCheckoutGuest can place ordershopper/checkout.spec.js
ShopperCheckoutCreate an accountshopper/checkout-create-account.spec.js
ShopperCheckoutLogin to existing accountshopper/checkout-login.spec.js
ShopperCheckoutExisting customer can place ordershopper/checkout.spec.js
ShopperCheckoutUse all coupon typesshopper/checkout-coupons.spec.js
ShopperCheckoutView checkoutshopper/checkout.spec.js
ShopperCheckoutReceive warnings when form is incompleteshopper/checkout.spec.js
ShopperCheckoutAdd billing addressshopper/checkout.spec.js
ShopperCheckoutRespect coupon usage constraintsshopper/cart-checkout-coupons.spec.js
ShopperCheckoutDisplay correct tax in checkoutshopper/cart-checkout-calculate-tax.spec.js
ShopperCheckoutView order confirmation pageshopper/checkout.spec.js

Shopper - Email

User TypeFlow AreaFlow NameTest File
ShopperEmailCustomer Account Emails Receivedshopper/account-email-receiving.spec.js
ShopperEmailCustomer Order Detail Emails Receivedshopper/order-email-receiving.spec.js

Shopper - My Account

User TypeFlow AreaFlow NameTest File
ShopperMy AccountCreate an accountshopper/my-account-create-account.spec.js
ShopperMy AccountLogin to existing accountshopper/my-account.spec.js
ShopperMy AccountView Account Detailsshopper/my-account.spec.js
ShopperMy AccountUpdate Addressesshopper/my-account-addresses.spec.js
ShopperMy AccountView Ordersshopper/my-account-pay-order.spec.js
ShopperMy AccountPay for Ordershopper/my-account-pay-order.spec.js
ShopperMy AccountView Downloadsshopper/my-account-downloads.spec.js

Merchant - Onboarding

User TypeFlow AreaFlow NameTest File
MerchantCore ProfilerIntroduction & opt-inactivate-and-setup/core-profiler.spec.js
MerchantCore ProfilerUser profile informationactivate-and-setup/core-profiler.spec.js
MerchantCore ProfilerBusiness informationactivate-and-setup/core-profiler.spec.js
MerchantCore ProfilerExtensions pageactivate-and-setup/core-profiler.spec.js
MerchantCore ProfilerWooPayments included in extensions for eligible criteriaactivate-and-setup/core-profiler.spec.js
MerchantCore ProfilerWooPayments not included in extensions for ineligible criteriaactivate-and-setup/core-profiler.spec.js
MerchantCore ProfilerInstall all default extensionsactivate-and-setup/core-profiler.spec.js
MerchantCore ProfilerComplete site setupactivate-and-setup/core-profiler.spec.js
MerchantCore ProfilerSkip introduction and confirm business locationactivate-and-setup/core-profiler.spec.js

Merchant - Dashboard

User TypeFlow AreaFlow NameTest File
MerchantWC HomeCompleting profiler redirects to home
MerchantWC HomeComplete all steps on task list
MerchantWC HomeHide the task list
MerchantWC HomeStore management displayed after task list finished
MerchantWC HomeDirect access to analytics reports from stats overview
MerchantWC HomePreserve task list completion status after upgrade
MerchantWC HomeInteract with extended task list
MerchantActivity PanelInteract with activity button
MerchantInboxInteract with notes and perform CTAs
MerchantInboxDismiss single note and all notes

Merchant - Settings

User TypeFlow AreaFlow NameTest File
MerchantSettingsUpdate General Settingsmerchant/settings-general.spec.js
MerchantSettingsAdd Tax Ratesmerchant/settings-tax.spec.js
MerchantSettingsAdd Shipping Zonesmerchant/create-shipping-zones.spec.js
MerchantSettingsAdd Shipping Classesmerchant/create-shipping-classes.spec.js
MerchantSettingsEnable local pickup for checkout blockmerchant/settings-shipping.spec.js
MerchantSettingsUpdate payment settingsadmin-tasks/payment.spec.js
MerchantSettingsHandle Product Brandsmerchant/create-product-brand.spec.js

Merchant - Coupons

User TypeFlow AreaFlow NameTest File
MerchantCouponsAdd all coupon typesmerchant/create-coupon.spec.js
MerchantCouponsAdd restricted couponmerchant/create-restricted-coupons.spec.js

Merchant - Marketing

User TypeFlow AreaFlow NameTest File
MerchantMarketingDisplay marketing overviewadmin-marketing/overview.spec.js

Merchant - Analytics

User TypeFlow AreaFlow NameTest File
MerchantAnalyticsView revenue reportadmin-analytics/analytics.spec.js
MerchantAnalyticsView overview reportadmin-analytics/analytics-overview.spec.js
MerchantAnalyticsConfirm correct summary numbers on overview reportadmin-analytics/analytics-data.spec.js
MerchantAnalyticsUse date filter on overview pageadmin-analytics/analytics-data.spec.js
MerchantAnalyticsCustomize performance indicators on overview pageadmin-analytics/analytics-overview.spec.js
MerchantAnalyticsUse date filter on revenue reportadmin-analytics/analytics-data.spec.js
MerchantAnalyticsDownload revenue report as CSVadmin-analytics/analytics-data.spec.js
MerchantAnalyticsUse advanced filters on orders reportadmin-analytics/analytics-data.spec.js
MerchantAnalyticsAnalytics settingsadmin-analytics/analytics-data.spec.js
MerchantAnalyticsSet custom date range on revenue reportadmin-analytics/analytics-data.spec.js

商家 - 产品

本页面展示了商家的产品列表。

产品管理

  • 添加产品: 点击 "添加产品" 按钮,可以创建一个新的产品。
  • 编辑产品: 点击产品列表中的 "编辑" 按钮,可以修改产品的详细信息。
  • 删除产品: 点击产品列表中的 "删除" 按钮,可以删除产品。 删除操作不可逆。
  • 批量操作: 支持批量上传和删除产品。

产品详情

每个产品包含以下信息:

  • 产品名称: 产品的名称。
  • 产品描述: 产品的详细描述。
  • 产品图片: 产品的图片。
  • 价格: 产品的价格。
  • 库存: 产品的库存数量。
  • 分类: 产品的分类。
  • SKU: 产品的唯一标识符。
  • 状态: 产品的状态(例如:已上架、已下架)。

产品状态管理

  • 上架/下架: 可以对产品进行上架和下架操作,控制产品在商店的显示。

高级功能 (仅限 Pro)

  • 自定义属性: 可以为产品添加自定义属性,例如颜色、尺寸等。
  • 批量更新: 可以批量更新产品的价格、库存等信息。
  • 导入/导出: 支持从 CSV 文件导入产品数据,以及将产品数据导出为 CSV 文件。

示例代码 (Python):

def get_product_details(product_id):
"""
获取指定产品 ID 的产品详情。

Args:
product_id: 产品的 ID。

Returns:
一个包含产品详情的字典,如果产品不存在则返回 None。
"""
# 这里是获取产品详情的示例代码,需要根据实际情况进行修改。
product = database.get_product(product_id)
if product:
return {
"name": product["name"],
"description": product["description"],
"price": product["price"],
"stock": product["stock"]
}
else:
return None

# 示例用法
product_id = %d
product_details = get_product_details(product_id)

if product_details:
print(f"产品名称: {product_details['name']}")
print(f"产品描述: {product_details['description']}")
print(f"产品价格: {product_details['price']}")
print(f"产品库存: {product_details['stock']}")
else:
print(f"产品 ID {product_id} 不存在。")

API 文档:

请参考 API 文档 获取更多关于产品 API 的信息。

常见问题:

  • 如何上传产品图片? 请参考 "产品管理" 部分的 "添加产品" 步骤。
  • 如何修改产品价格? 请点击产品列表中的 "编辑" 按钮,修改 "价格" 字段。
  • Pro 版本有哪些优势? Pro 版本提供了更多高级功能,例如自定义属性、批量更新和导入/导出功能。

联系我们:

如果您有任何问题,请联系我们的技术支持团队。 邮箱地址: support@example.com

User TypeFlow AreaFlow NameTest File
MerchantProductsView all productsmerchant/product-search.spec.js
MerchantProductsSearch productsmerchant/product-search.spec.js
MerchantProductsAdd simple productmerchant/product-create-simple.spec.js
MerchantProductsAdd variable productmerchant/products/add-variable-product/create-variable-product.spec.js
MerchantProductsEdit product detailsmerchant/product-edit.spec.js
MerchantProductsAdd virtual productmerchant/product-create-simple.spec.js
MerchantProductsImport products CSVmerchant/product-import-csv.spec.js
MerchantProductsAdd downloadable productmerchant/product-create-simple.spec.js
MerchantProductsView product reviews listmerchant/product-reviews.spec.js
MerchantProductsView all products reviews listmerchant/product-reviews.spec.js
MerchantProductsEdit product reviewmerchant/product-reviews.spec.js
MerchantProductsTrash product reviewmerchant/product-reviews.spec.js
MerchantProductsBulk edit productsmerchant/product-edit.spec.js
MerchantProductsRemove productsmerchant/product-delete.spec.js
MerchantProductsManage product imagesmerchant/product-images.spec.js
MerchantProductsManage product inventorymerchant/product-create-simple.spec.js
MerchantProductsManage product attributesmerchant/product-create-simple.spec.js
MerchantProductsManage global attributes
MerchantProductsAdd up-sellproducts/product-linked-products.spec.js
MerchantProductsAdd cross-sellproducts/product-linked-products.spec.js
MerchantProducts (New)Disable new product experiencemerchant/products/block-editor/disable-block-product-editor.spec.js
MerchantProducts (New)Add simple productmerchant/products/block-editor/create-simple-product-block-editor.spec.js
MerchantProducts (New)Edit simple productmerchant/products/block-editor/product-edit-block-editor.spec.js
MerchantProducts (New)Manage product imagesmerchant/products/block-editor/product-images-block-editor.spec.js
MerchantProducts (New)Manage product inventorymerchant/products/block-editor/product-inventory-block-editor.spec.js
MerchantProducts (New)Manage product attributesmerchant/products/block-editor/product-attributes-block-editor.spec.js

Merchant - Orders

User TypeFlow AreaFlow NameTest File
MerchantOrdersView all ordersmerchant/order-status-filter.spec.js
MerchantOrdersCan add new order basicmerchant/order-edit.spec.js
MerchantOrdersView single ordermerchant/order-edit.spec.js
MerchantOrdersUpdate order status to completedmerchant/order-edit.spec.js
MerchantOrdersUpdate order status to cancelledmerchant/order-edit.spec.js
MerchantOrdersUpdate order detailsmerchant/order-edit.spec.js
MerchantOrdersCustomer payment pagemerchant/customer-payment-page.spec.js
MerchantOrdersRefund ordermerchant/order-refund.spec.js
MerchantOrdersApply couponmerchant/order-coupon.spec.js
MerchantOrdersCan add new order complex - multiple product types & tax classesmerchant/create-order.spec.js
MerchantOrdersSearch ordersmerchant/order-search.spec.js
MerchantOrdersFilter orders by order statusmerchant/order-status-filter.spec.js
MerchantOrdersBulk change order statusmerchant/order-bulk-edit.spec.js
MerchantOrdersAdd order notesmerchant/order-edit.spec.js

Merchant - Customers

User TypeFlow AreaFlow NameTest File
MerchantCustomersDisplay customer listmerchant/customer-list.spec.js

Merchant - Email

User TypeFlow AreaFlow NameTest File
MerchantEmailReceive and check content of new order emailmerchant/order-emails.spec.js
MerchantEmailReceive and check content of cancelled order emailmerchant/order-emails.spec.js
MerchantEmailReceive and check content of failed order emailmerchant/order-emails.spec.js
MerchantEmailResent new order emailmerchant/order-emails.spec.js
MerchantEmailSend invoice/order details to customer via Emailmerchant/order-emails.spec.js

Merchant - Plugins

User TypeFlow AreaFlow NameTest File
MerchantPluginsCan update WooCommercesmoke-tests/update-woocommerce.spec.js

Merchant - My Subscriptions

User TypeFlow AreaFlow NameTest File
MerchantMy SubscriptionsCan initiate WooCommerce.com Connectionmerchant/settings-woo-com.spec.js

Merchant - Pages

User TypeFlow AreaFlow NameTest File
MerchantPagesCan create a new pagemerchant/create-page.spec.js

Merchant - Posts

User TypeFlow AreaFlow NameTest File
MerchantPostsCan create a new postmerchant/create-post.spec.js