solidus

https://github.com/solidusio/solidus

Ruby

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

Spree::StoreController#apply_coupon_code

This method is placed here so that the CheckoutController
and OrdersController can both reference it (or any other controller
which needs it)

Source | Google | Stack overflow

Edit

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

cd solidus

open frontend/app/controllers/spree/store_controller.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--StoreController-apply_coupon_code-for-pr


# Commit to git

git add frontend/app/controllers/spree/store_controller.rbgit commit -m "better docs for Spree::StoreController#apply_coupon_code"


# 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--StoreController-apply_coupon_code-for-pr

hub pull-request


# Celebrate!