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
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 branchgit checkout -b -your-name--update-docs-Spree--Promotion--Actions--CreateItemAdjustments-compute_amount-for-pr
# Commit to gitgit 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 requestgem 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!