Skip to content

Fix #26: Cart total ignores line item quantities#32

Draft
github-actions[bot] wants to merge 2 commits into
mainfrom
posthog-watcher/issue-26
Draft

Fix #26: Cart total ignores line item quantities#32
github-actions[bot] wants to merge 2 commits into
mainfrom
posthog-watcher/issue-26

Conversation

@github-actions

Copy link
Copy Markdown

Fixes #26

Generated by posthog-watcher-action using pi.

Summary

The /cart/total endpoint delegates to totalCart, which currently sums each line item's price once instead of multiplying by quantity.

Triage rationale

The bug is isolated to the totalCart calculation and there is already a direct test covering the expected behavior.

Changed files

  • src/business.js

Validation

  • node -e "require('./src/business'); require('./src/app'); console.log('modules load')"

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.

Cart total ignores line item quantities

0 participants