conneqt / module-special-prices
N/A
Requires
- php: >=8.1
- conneqt/m2-base: *
- magento/framework: *
- dev-develop
- 1.2.1
- 1.2.0
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.4
- 1.0.2
- 1.0.1
- 1.0.0
- dev-feature/INT-54
- dev-feature/price-lists
- dev-feature/enable-disable-feature
- dev-feature/price-filter-improvements
- dev-feature/add-check-for-qty
- dev-feature/caching-improvements
- dev-feature/code-cleanup
- dev-feature/anti-error-caching
- dev-feature/support-for-product-options
- dev-feature/caching-fix
- dev-feature/table-index
- dev-feature/sap-version-support-update
- dev-feature/autocleanup-cron
- dev-feature/INT-64
- dev-feature/INT-63-extend-ability-changes
- dev-feature/admin-tables-data-fix
- dev-feature/INT-55-customer-price-page-config
- dev-feature/INT-52-change-qty-one
- dev-feature/INT-51-admin-table-fixes
- dev-feature/INT-49-handling-null-base-price
- dev-feature/INT-46-caching-support
- dev-feature/INT-38-frontend-customer-pricing
- dev-feature/INT-43-product-pricing-table
- dev-feature/INT-37-customer-pricing-table
- dev-feature/INT-36-pricing-table
- dev-feature/INT-28
- dev-feature/INT-44-readme-documentation
- dev-feature/INT-25-Tierpricing
- dev-feature/INT-24
- dev-feature/INT-21
- dev-feature/INT-23
This package is auto-updated.
Last update: 2024-09-13 16:43:23 UTC
README
目录
关于
特殊价格模块是您 Magento 2 商店的强大补充,提供了高级定价管理功能。此模块允许您根据广泛的标准为产品设置自定义价格,提供灵活性,使您能够定制定价策略以满足独特的业务需求。
使用特殊价格模块,您可以
- 为单个客户或客户组设置自定义价格。
- 将这些自定义价格应用于特定产品或产品组。
- 选择是否将新价格作为最终价格或作为折扣百分比应用于正常产品价格。
这种对定价的精细控制使您能够创建个性化的优惠,实施有针对性的促销活动,并优化定价策略以增强客户参与度和推动销售。无论您是想向忠实客户提供特别折扣,为不同客户组细分定价,还是尝试各种定价模型,特殊价格模块都为您提供在竞争激烈的电子商务领域取得成功的工具。
配置
导航到商店配置 \ 访问您的 Magento 管理面板并访问配置设置: 路径:商店 -> 配置 -> Conneqt -> 特殊价格
价格范围 \ 此选项确定在特定产品为客户存在多个结果时,应显示哪个特殊价格。您可以选择从可用选项中显示最低、最高或平均特殊价格。
客户 ID 属性 \ 描述:选择用作产品系列参考的客户属性。您可以选择所有文本或选择类型的客户属性。
客户组 ID 属性 \ 描述:类似于客户 ID 属性,此选项允许您选择用作产品系列参考的客户属性,但对于客户组。您可以选择所有文本或选择类型的客户属性。
产品组属性 \ 指定用作产品组参考的产品属性。您可以选择所有文本或选择类型的产品属性。
验证 SKU \ 描述:此设置确定在将特殊价格添加到数据库时是否应验证产品 SKU。启用此选项将在添加价格之前确保提供的 SKU 是有效的。
更新价格 \ 此选项控制 API 遇到已在数据库中存在的 customer_id
、customer_group
、product_group
或 product_sku
组合时的行为。如果设置为“是”,则将更新现有值。如果设置为“否”,则将创建新条目而不会更新现有值。
不支持的特性
以下方面未提供测试或支持,请注意:
- 与可配置产品相关的特殊价格:特殊价格尚未与可配置产品进行测试。
- 与分组产品相关的特殊价格:特殊价格尚未与分组产品进行测试。
- 与税相关的特殊价格:特殊价格尚未与税进行测试。
- 与 Magento 折扣相关的特殊价格:特殊价格尚未与 Magento 折扣或目录价格规则进行测试。
API 文档
[POST] 添加价格
描述: 此API允许您根据特定条件(如客户ID、客户组ID和产品参考)为产品添加特殊价格。当cleanup
参数设置为true
时,将删除不符合提供数组中指定的任何现有特殊价格。您还可以启用cleanupExpired
参数来自动删除过期的特殊价格。\ URL: /V1/special-prices/addPrices
参数
customerId
(字符串)\ customerGroupId
(字符串)\ cleanup
(布尔值)\ cleanupExpired
(布尔值)\ productReferences
(混合类型)- 格式:{ sku : string, group : string, price : float, discount : float, date_from : datetime, date_to : datetime, qty : float }
返回参数
success
(真/假)\ invalidReferences
(包含不存在于产品数据库中的SKU的价格参考数组和)\ createdReferences
(已添加到客户产品组合中的价格参考数组)\ updatedReferences
(在数据库中更新的价格参考数组)\ cleanedUp
(从数据库中删除的价格参考数组)\ cleanupExpired
(由于date_to
已超过当前日期时间而从数据库中删除的价格参考数组)
[POST] 删除价格
描述: 此API允许您根据产品SKU、客户ID、客户组ID等条件删除产品的特定特殊价格。\ URL: /V1/special-prices/removePrice
参数
productSku
(字符串)\ productGroup
(字符串)\ customerId
(字符串)\ customerGroupId
(字符串)
返回参数
success
(真/假)\ removed
(被删除的价格参考数组)
[POST] 删除客户价格
描述: 此API允许您删除与特定客户或客户组关联的所有特殊价格。\ URL: /V1/special-prices/removeCustomerPrices
参数
customerId
(字符串)\ customerGroupId
(字符串)
返回参数
success
(真/假)\ removed
(被删除的价格参考数组)
[POST] 删除产品价格
描述: 此API允许您删除与特定产品或产品组关联的所有特殊价格。\ URL: /V1/special-prices/removeProductPrices
参数
productSku
(字符串)\ productGroup
(字符串)
返回参数
success
(真/假)\ removed
(被删除的价格参考数组)