solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::OrderUpdater#recalculate_adjustments
This will update and select the best promotion adjustment, update tax adjustments, update cancellation adjustments, and then update the total fields (promo_total, included_tax_total, additional_tax_total, and adjustment_total) on the item.
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/order_updater.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--OrderUpdater-recalculate_adjustments-for-pr
# Commit to gitgit add core/app/models/spree/order_updater.rbgit commit -m "better docs for Spree::OrderUpdater#recalculate_adjustments"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--OrderUpdater-recalculate_adjustments-for-pr
hub pull-request
# Celebrate!