Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[6.x] Fix error with {{ sc:cart:raw_tax_total_split }} tag #1037

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

duncanmcclean
Copy link
Owner

@duncanmcclean duncanmcclean commented Apr 2, 2024

This pull request fixes an error when using the {{ sc:cart:raw_tax_total_split }} tag.

Previously, the raw_tax_total_split tag was getting the line items from the tag's ->items() method which meant it was getting the line items post-augmentation.

This would then cause an issue when trying to sum the tax totals because the tax amounts would be augmented as strings (eg. £12.50) instead of integers.

This refactors that implementation so we're dealing with the LineItem methods, rather than augmented arrays.

Related: #1035 (comment)

@duncanmcclean duncanmcclean merged commit 9d576b5 into 6.x Apr 2, 2024
10 checks passed
@duncanmcclean duncanmcclean deleted the fix/cart-raw-tax-total-split-tag branch April 2, 2024 19:01
Copy link

github-actions bot commented Apr 2, 2024

Released as part of v6.0.11.

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.

None yet

1 participant