solidus

https://github.com/solidusio/solidus

Ruby

🛒 Solidus, the open-source eCommerce framework for industry trailblazers.

Spree::OrderUpdater#update_order_promotions

Update and select the best promotion adjustment for the order.
We don't update the order.promo_total yet. Order totals are updated later
in #update_adjustment_total since they include the totals from the order's
line items and/or shipments.

Source | Google | Stack overflow

Edit

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

cd solidus

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

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--OrderUpdater-update_order_promotions-for-pr


# Commit to git

git add core/app/models/spree/order_updater.rbgit commit -m "better docs for Spree::OrderUpdater#update_order_promotions"


# 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--OrderUpdater-update_order_promotions-for-pr

hub pull-request


# Celebrate!