Skip to content

Golden Product #23

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
2 of 16 tasks
FabianWesner opened this issue Nov 23, 2024 · 0 comments · May be fixed by #26
Open
2 of 16 tasks

Golden Product #23

FabianWesner opened this issue Nov 23, 2024 · 0 comments · May be fixed by #26

Comments

@FabianWesner
Copy link
Collaborator

FabianWesner commented Nov 23, 2024

Owner - Product Types & Attributes

  • As an owner, I can CRUD product types. Each product type includes a name (e.g., "Book").
  • As an owner, I can define product attributes per product types. Each attribute has a name (e.g., "material"), a type, a form field, a set of validators and options (for selects).
Attribute Type Compatible FilamentPHP Form Field Types
Text TextInput, Textarea
Boolean Checkbox, Toggle
Number TextInput (with number validation)
Select Select
URL TextInput (with URL validation)
Color ColorPicker

Field type and Validators:

Form Field Validators Mentioned in Docs
TextInput Required, Email, URL, Min (character length), Max (character length), Regex, String
Textarea Required, Min (character length), Max (character length), String
Checkbox Required, Boolean
Toggle Required, Boolean
Select Required, Enum, In (specific values), NotIn (excluded values)
ColorPicker Required, Hexadecimal Color Code
Repeater Array, Min (items), Max (items), Required
CheckboxList Array, Required
KeyValue Array (with key-value format validation), Required

TODO: super attributes and variants

Product Type Mapping

When a seller sets a seller-product to "active", then:

  • ... a golden product is created or selected (if EAN or other non-merchant specific article number matches).
  • ... the product-type is determined via AI
  • ... the attributes (of the seller) are mapped to the attributes of the selected product-type via AI. Attributes may be split or merged during this step (e.g. dimensions). Attributes, that cannot be mapped, will be saved to an unmapped attributes field in the golden record
  • ... all textual content is translated into the owner's configured locales
  • ... prices and stocks are copied to the golden product and marked with the seller's ID (existing entities must get the prefix Seller*)
  • ... images are copied to the golden product (with seller ID). AI chooses one set of products and marks it, so the shop can use it.
  • If there is already a golden record that is related to a seller-product then ....
  • - [ ] If there is already a golden record that is not yet related to a seller-product, but has the same EAN then ....

Owner - Golden Products

  • As an Owner, I can see a list of all Golden Products, with badge for "new" and "updated". I can also see the number of related seller-products (from different sellers that sell the same product)
  • As an owner, I can see golden product form based on the defined product types and their attributes in all configured languages, side-by-side with the seller's data.
  • As an owner, I can change any data of the golden record.
  • As an owner, I can choose which image set is used for my shop.
  • As an owner, I can set a status on the golden product, so it's published to my shop.
  • TODO status
@FabianWesner FabianWesner changed the title Product Attribute Type Matching Golden Product Dec 3, 2024
@FabianWesner FabianWesner linked a pull request Jan 15, 2025 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant