Skip to content

[v4.6] Add tax_category_id method to Spree::Product#6427

Open
solidus-bot[bot] wants to merge 2 commits intov4.6from
backport/v4.6/pr-6423
Open

[v4.6] Add tax_category_id method to Spree::Product#6427
solidus-bot[bot] wants to merge 2 commits intov4.6from
backport/v4.6/pr-6423

Conversation

@solidus-bot
Copy link

@solidus-bot solidus-bot bot commented Mar 15, 2026

Backport

This will backport the following commits from main to v4.6:

Questions ?

Please refer to the Backport tool documentation

The method has some logic inside, but was never tested. Test that the correct tax_category or the default tax_category will be returned.

(cherry picked from commit 7180bdc)
The LineItem and the Variant are referencing the tax_category_id, but does not have the same logic as the tax_category (the fallback to the default tax category). This method mirrors the same logic as the tax_category method.

(cherry picked from commit fc8e4ee)
@solidus-bot solidus-bot bot requested a review from a team as a code owner March 15, 2026 14:33
@solidus-bot solidus-bot bot added the changelog:solidus_core Changes to the solidus_core gem label Mar 15, 2026
@codecov
Copy link

codecov bot commented Mar 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.37%. Comparing base (c86bc1e) to head (5c0a315).
⚠️ Report is 1 commits behind head on v4.6.

Additional details and impacted files
@@           Coverage Diff           @@
##             v4.6    #6427   +/-   ##
=======================================
  Coverage   89.37%   89.37%           
=======================================
  Files         963      963           
  Lines       20213    20215    +2     
=======================================
+ Hits        18065    18067    +2     
  Misses       2148     2148           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

changelog:solidus_core Changes to the solidus_core gem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant