solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::Order#line_item_options_match
This method enables extensions to participate in the
"Are these line items equal" decision.
When adding to cart, an extension would send something like:
params[:product_customizations]={...}
and would provide:
def product_customizations_matchEdit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/order.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--Order-line_item_options_match-for-pr
# Commit to gitgit add core/app/models/spree/order.rbgit commit -m "better docs for Spree::Order#line_item_options_match"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--Order-line_item_options_match-for-pr
hub pull-request
# Celebrate!