bagisto-product-type-development

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Product Type Development in Bagisto

Bagisto产品类型开发

Overview

概述

Creating custom product types in Bagisto allows you to define specialized product behaviors that match your business needs. Whether you need subscription products, rental items, digital services, or complex product variations, custom product types provide the flexibility to create exactly what your store requires.
在Bagisto中创建自定义产品类型,可让你定义符合业务需求的专属产品行为。无论你需要订阅产品、租赁物品、数字服务还是复杂的产品变体,自定义产品类型都能提供足够的灵活性,创建出店铺所需的各类产品。

When to Apply

适用场景

Activate this skill when:
  • Creating new product types in Bagisto
  • Building subscription or service-based products
  • Implementing custom product behaviors
  • Adding type-specific validation and pricing
  • Modifying inventory/stock handling

在以下场景中启用此技能:
  • 在Bagisto中创建新的产品类型
  • 构建订阅型或服务型产品
  • 实现自定义产品行为
  • 添加特定类型的验证和定价规则
  • 修改库存/库存处理逻辑

Reference files — load only what the current task needs

参考文件——仅加载当前任务所需的文件

FileLoad when
configuration.mdThe product_types config and how Bagisto reads it
abstract-type.mdAbstractType and the methods worth overriding
building-a-type.mdA complete worked implementation, testing, pitfalls
REQUIRED SUB-SKILL: Use bagisto-change-verification before calling any change done.
文件加载时机
configuration.md需要了解product_types配置及Bagisto如何读取该配置时
abstract-type.md需要了解AbstractType以及值得重写的方法时
building-a-type.md需要完整的实现示例、测试方法及注意事项时
必备子技能: 在完成任何更改前,请使用bagisto-change-verification技能。