solidus

https://github.com/solidusio/solidus

Ruby

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

Spree::Order#checkout_allowed?

Indicates whether or not the user is allowed to proceed to checkout.
Currently this is implemented as a check for whether or not there is at
least one LineItem in the Order.  Feel free to override this logic in your
own application if you require additional steps before allowing a checkout.

Source | Google | Stack overflow

Edit

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

cd solidus

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

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--Order-checkout_allowed--for-pr


# Commit to git

git add core/app/models/spree/order.rbgit commit -m "better docs for Spree::Order#checkout_allowed?"


# 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--Order-checkout_allowed--for-pr

hub pull-request


# Celebrate!