solidus

https://github.com/solidusio/solidus

Ruby

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

Spree::Order#ensure_updated_shipments

Clean shipments and make order back to address state

At some point the might need to force the order to transition from address
to delivery again so that proper updated shipments are created.
e.g. customer goes back from payment step and changes order items

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-ensure_updated_shipments-for-pr


# Commit to git

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


# 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-ensure_updated_shipments-for-pr

hub pull-request


# Celebrate!