Skip to content

fix: B2BTEAM-3592 Quick Order More for Less promo quantities - #187

Merged
wender merged 4 commits into
masterfrom
fix/B2BTEAM-3592-quickorder-promo-quantities
Sep 23, 2026
Merged

wender merged 4 commits into
masterfrom
fix/B2BTEAM-3592-quickorder-promo-quantities

Conversation

@wender

@wender wender commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Fixes Quick Order treating the first More for Less split line quantity as the max available units (e.g. Buy3Get1 → Max=2 on paste 1101,3).

Jira: B2BTEAM-3592

Validation (b2bstoreqa)

  • Master: QO 1101,3 → Max quantity is 2 (FAIL)
  • Workspace qamoreforless with this branch linked (338cdb1): Valid qty 3, Add to Cart OK, cart 2 paid + 1 Free (PASS)

Test plan

  • Account b2bstoreqa, promo Buy3Get1 active, SKU 11 / RefId 1101
  • Quick Order paste 1101,3 → Validate without Max=2
  • Add to Cart → expected MFL split (paid + free lines)

cursoragent and others added 2 commits September 17, 2026 13:47
…k Order

Checkout simulation quantity can differ from user input when More for Less
promotions apply. Stop treating that field as fulfillable stock unless
availability indicates a real stock shortfall, and preserve requested
quantities for validation and review display.

Co-authored-by: Wender <wender@users.noreply.github.com>
More for Less simulations return separate paid and gift lines for the same
SKU and seller; concatenating them made getSkuSellerInfo use only the first
line quantity. Sum quantities and merge priceTags when aggregating.

Co-authored-by: Wender <wender@users.noreply.github.com>
@vtex-io-ci-cd

vtex-io-ci-cd Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

  • Patch (backwards-compatible bug fixes)

  • Minor (backwards-compatible functionality)

  • Major (incompatible API changes)

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

  • No thanks, I would rather do it manually 😞

@vtex-io-docs-bot

vtex-io-docs-bot Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Beep boop 🤖

I noticed you didn't make any changes at the docs/ folder

  • There's nothing new to document 🤔
  • I'll do it later 😞

In order to keep track, I'll create an issue if you decide now is not a good time

  • I just updated 🎉🎉

Resolve CHANGELOG.md conflict: keep Unreleased Fixed entries and 3.16.9 release notes.

Co-authored-by: Wender <wender@users.noreply.github.com>

@nicholas-maestrello nicholas-maestrello left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approve no merge das linhas split do More for Less (paid + gift) por seller — isso cobre o Max=2 no 1101,3.

Deixei uma observação no heurístico de priceTags: não bloqueia o merge desta KI, mas vale um follow-up para não mascarar estoque parcial real.

Comment thread node/resolvers/search/index.ts Outdated
Remove the broad priceTags heuristic from promotion-adjusted quantity
detection so Validate reports partiallyAvailable when simulated qty is
below the request (progressive discount, MFL + low stock). MFL paid+gift
split lines remain handled via seller aggregation.

Co-authored-by: Wender <wender@users.noreply.github.com>
@wender
wender merged commit ba75e8f into master Sep 23, 2026
5 checks passed
@wender
wender deleted the fix/B2BTEAM-3592-quickorder-promo-quantities branch September 23, 2026 23:33
@vtex-io-ci-cd

vtex-io-ci-cd Bot commented Sep 23, 2026

Copy link
Copy Markdown

Your PR has been merged! App is being published. 🚀
Version 3.16.9 → 3.16.10

After the publishing process has been completed (check #vtex-io-releases) and doing A/B tests with the new version, you can deploy your release by running:

vtex deploy vtex.quickorder@3.16.10

After that your app will be updated on all accounts.

For more information on the deployment process check the docs. 📖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants