solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::OrderUpdater#update_totals
Updates the following Order total values: +payment_total+ The total value of all finalized Payments (NOTE: non-finalized Payments are excluded) +item_total+ The total value of all LineItems +adjustment_total+ The total value of all adjustments (promotions, credits, etc.) +promo_total+ The total value of all promotion adjustments +total+ The so-called "order total." This is equivalent to +item_total+ plus +adjustment_total+.
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-update_totals-for-pr
# Commit to gitgit add core/app/models/spree/order_updater.rbgit commit -m "better docs for Spree::OrderUpdater#update_totals"
# 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-update_totals-for-pr
hub pull-request
# Celebrate!