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.

Source | Google | Stack overflow

Edit

git clone [email protected]:solidusio/solidus.git

cd solidus

open core/app/models/spree/item_adjustments.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--ItemAdjustments-update-for-pr


# Commit to git

git add core/app/models/spree/item_adjustments.rbgit commit -m "better docs for Spree::ItemAdjustments#update"


# Open pull request

gem 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!