Skip to content

Added fees and duties to cart, checkout and order totals - #217

Open
damianlegawiec wants to merge 5 commits into
6-0-devfrom
feat/show-fees-in-totals
Open

damianlegawiec wants to merge 5 commits into
6-0-devfrom
feat/show-fees-in-totals

Conversation

@damianlegawiec

Copy link
Copy Markdown
Member

Spree 6.0 carts and orders carry a fees array (gift wrapping, handling, cash on delivery, payment surcharges, customs duties). The storefront never rendered them, so a fee changed the total with no line explaining why. Cross-border shoppers in particular expect to see an import duty called out before they pay.

  • Added one line per fee, labelled with the fee's own label, to the cart page, cart drawer, checkout summary, order totals (order placed page and account order detail) and the wholesale cart
  • Added the same lines to the order confirmation email
  • Fees are already included in total, so they are listed between the subtotal and the total and nothing is added on top

🤖 Generated with Claude Code

Adds an opt-in link to a local @spree/sdk build so the storefront can be
developed against unreleased Store API features. Without SPREE_SDK_PATH the
install is unchanged, keeping standalone clones and CI on the published SDK.
Without it pnpm walks up the filesystem and adopts an enclosing workspace,
installing that project's dependencies and overrides here instead of these.
Module resolution is pinned to this project's own directory, so a package
symlinked outside it fails to resolve and every import of @spree/sdk breaks.
The dependency is copied rather than symlinked, so a rebuild needs a reinstall
to take effect.
@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
storefront Error Error Sep 9, 2026 11:20am UTC

Request Review

@strix-security

strix-security Bot commented Sep 9, 2026

Copy link
Copy Markdown

Strix Security Review

No security issues found.

Updated for 1b3161a.


Reviewed by Strix
Re-run review · Configure security review settings

@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: e9f1a8a0-2e24-4823-9aad-d45a20048f40

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Spree 6.0 carts and orders carry a fees array (gift wrapping, handling, cash on delivery, payment surcharges, customs duties). The storefront never rendered them, so a fee changed the total with no line explaining why. Each fee now shows as its own line, under its own label, on the cart page, cart drawer, checkout summary, order totals and the order confirmation email.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.

1 participant