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_match

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


# Commit to git

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


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

hub pull-request


# Celebrate!