solidus

https://github.com/solidusio/solidus

Ruby

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

Spree::Promotion::Actions::CreateItemAdjustments#compute_amount

Ensure a negative amount which does not exceed the sum of the order's
item_total and ship_total

Source | Google | Stack overflow

Edit

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

cd solidus

open legacy_promotions/app/models/spree/promotion/actions/create_item_adjustments.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--Promotion--Actions--CreateItemAdjustments-compute_amount-for-pr


# Commit to git

git add legacy_promotions/app/models/spree/promotion/actions/create_item_adjustments.rbgit commit -m "better docs for Spree::Promotion::Actions::CreateItemAdjustments#compute_amount"


# 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--Promotion--Actions--CreateItemAdjustments-compute_amount-for-pr

hub pull-request


# Celebrate!