solidus

https://github.com/solidusio/solidus

Ruby

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

Spree::OrderInventory#determine_target_shipment

Returns either one of the shipment:

first unshipped that already includes this variant
first unshipped that's leaving from a stock_location that stocks this variant

Source | Google | Stack overflow

Edit

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

cd solidus

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

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--OrderInventory-determine_target_shipment-for-pr


# Commit to git

git add core/app/models/spree/order_inventory.rbgit commit -m "better docs for Spree::OrderInventory#determine_target_shipment"


# 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--OrderInventory-determine_target_shipment-for-pr

hub pull-request


# Celebrate!