solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::Calculator::DefaultTax#compute_order
Default tax calculator still needs to support orders for legacy reasons Orders created before Spree 2.1 had tax adjustments applied to the order, as a whole. Orders created with Spree 2.2 and after, have them applied to the line items individually.
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/calculator/default_tax.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--Calculator--DefaultTax-compute_order-for-pr
# Commit to gitgit add core/app/models/spree/calculator/default_tax.rbgit commit -m "better docs for Spree::Calculator::DefaultTax#compute_order"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--Calculator--DefaultTax-compute_order-for-pr
hub pull-request
# Celebrate!