solidus

https://github.com/solidusio/solidus

Ruby

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

Spree::Calculator::PercentPerItem#matching_products

Returns all products that match this calculator, but only if the calculator
is attached to a promotion. If attached to a ShippingMethod, nil is returned.
Copied from per_item.rb

Source | Google | Stack overflow

Edit

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

cd solidus

open core/app/models/spree/calculator/percent_per_item.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--Calculator--PercentPerItem-matching_products-for-pr


# Commit to git

git add core/app/models/spree/calculator/percent_per_item.rbgit commit -m "better docs for Spree::Calculator::PercentPerItem#matching_products"


# 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--Calculator--PercentPerItem-matching_products-for-pr

hub pull-request


# Celebrate!