solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::ItemAdjustments#update
Update the item's adjustments and totals
If the item is an {Order}, this will update and select the best
promotion adjustment.
If it is a {LineItem} or {Shipment}, it 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.
This is a noop if the item is not persisted.Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/item_adjustments.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--ItemAdjustments-update-for-pr
# Commit to gitgit add core/app/models/spree/item_adjustments.rbgit commit -m "better docs for Spree::ItemAdjustments#update"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--ItemAdjustments-update-for-pr
hub pull-request
# Celebrate!