Skip to content

chore: Individual Pricing documentation#2133

Open
Duy Dinh (silverDuy) wants to merge 13 commits intomainfrom
chore-individual-pricing-doc
Open

chore: Individual Pricing documentation#2133
Duy Dinh (silverDuy) wants to merge 13 commits intomainfrom
chore-individual-pricing-doc

Conversation

@silverDuy
Copy link
Contributor

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds new documentation pages for the B2B “Individual Pricing” component, covering feature overview, core concepts (entities/workflow + pricing workflow), and developer extensibility points. Also updates the B2B Components landing page and the repository spellchecker wordlist to recognize newly introduced technical terms.

Changes:

  • Introduce a new Individual Pricing documentation section with overview and conceptual docs.
  • Add an extensibility guide describing relevant extensions, events, and message-bus messages.
  • Update the B2B components index and extend .wordlist.txt with new domain terms.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
products/extensions/b2b-components/individual-pricing/index.md New landing page describing Individual Pricing features, behavior, and links to deeper docs.
products/extensions/b2b-components/individual-pricing/guides/01-extensibility-events-messages.md New guide documenting extension points and including a PHP subscriber example.
products/extensions/b2b-components/individual-pricing/concepts/01-entities-and-workflow.md New concept doc describing entities, schema, and evaluation workflow.
products/extensions/b2b-components/individual-pricing/concepts/02-pricing-workflow.md New concept doc detailing runtime resolution, caching/indexing, limitations, and performance considerations.
products/extensions/b2b-components/index.md Adds Individual Pricing to the list of available B2B components.
.wordlist.txt Adds new technical terms for the spell checker used by the docs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

@Isengo1989 Micha Hobert (Isengo1989) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for the PR Duy Dinh (@silverDuy) - added some comments.

Please change the currency to appear after the number for greater precision (which is the official writing style)

€50 -> 50€

or best change it to be more international to $

€50 -> 50$

@Isengo1989 Micha Hobert (Isengo1989) added the Undocumented Feature Feature which is not documented yet and is considered for documentation label Feb 24, 2026
@silverDuy
Copy link
Contributor Author

Duy Dinh (silverDuy) commented Feb 25, 2026

Thx for the PR Duy Dinh (Duy Dinh (@silverDuy)) - added some comments.

Please change the currency to appear after the number for greater precision (which is the official writing style)

€50 -> 50€

or best change it to be more international to $

€50 -> 50$

Micha Hobert (@Isengo1989) Thank you for your suggestion, I changed it from €50 -> 50$ already.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +232 to +235
- Example: A product with 100$ original price but 80$ individual price sorts by 100$
- **Price filtering**: Products may be incorrectly included or excluded from results
- Example: Filtering 50$-75$ might miss a 100$ product that costs 60$ with individual pricing
- Example: Filtering 50$-75$ might include a 50$ product that costs 85$ with individual pricing
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The price examples use 100$, 80$, and ranges like 50$-75$. Consider switching to $100, $80, $50–$75 (or a currency-neutral format) to avoid ambiguity and keep formatting consistent with common conventions.

Suggested change
- Example: A product with 100$ original price but 80$ individual price sorts by 100$
- **Price filtering**: Products may be incorrectly included or excluded from results
- Example: Filtering 50$-75$ might miss a 100$ product that costs 60$ with individual pricing
- Example: Filtering 50$-75$ might include a 50$ product that costs 85$ with individual pricing
- Example: A product with $100 original price but $80 individual price sorts by $100
- **Price filtering**: Products may be incorrectly included or excluded from results
- Example: Filtering $50–$75 might miss a $100 product that costs $60 with individual pricing
- Example: Filtering $50–$75 might include a $50 product that costs $85 with individual pricing

Copilot uses AI. Check for mistakes.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Micha Hobert (@Isengo1989) What do you think about this suggestion? Will we keep it as 50$ or change it to $50? 🤔

Comment on lines +34 to +54
- `by_percent`: Reduce price by a percentage (e.g., 10% off)
- `by_fixed`: Reduce price by a fixed amount (e.g., 5$ off)
- `to_fixed`: Set price to a specific amount (e.g., 99.99$)
- `volume_pricing`: Use tiered pricing based on quantity

### Individual Pricing Tier

The tier entity defines volume-based pricing tiers for quantity discounts. Multiple tiers can be associated with a single Individual Pricing rule when the action type is set to `volume_pricing`.

**Key properties:**

- **individualPricingId**: Reference to the parent pricing rule
- **qtyFrom**: Minimum quantity for this tier (inclusive)
- **qtyTo**: Maximum quantity for this tier (inclusive, null for unlimited)
- **price**: Price collection containing prices for different currencies

**Example tiers:**

- Tier 1: 1-9 units @ 10$ each
- Tier 2: 10-49 units @ 9$ each
- Tier 3: 50+ units @ 8$ each
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The examples use currency formatting like 5$, 99.99$, and 10$ each, which is atypical and can be misread. Consider switching to $5, $99.99, $10 (or using a currency-agnostic example) for clarity and consistency throughout the docs.

Copilot uses AI. Check for mistakes.
Duy Dinh (silverDuy) and others added 4 commits February 25, 2026 10:04
…/01-entities-and-workflow.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…/02-pricing-workflow.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Duy Dinh (silverDuy) and others added 3 commits February 25, 2026 10:14
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Undocumented Feature Feature which is not documented yet and is considered for documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants