solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::Variant::PricingOptions#search_arguments
A slightly modified version of the `desired_attributes` Hash. Instead of having "nil" or an actual country ISO code under the `:country_iso` key, this creates an array under the country_iso key that includes both the actual country iso we want and nil as a shorthand for the fallback price. This is useful so that we can determine the availability of variants by price:
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/variant/pricing_options.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--Variant--PricingOptions-search_arguments-for-pr
# Commit to gitgit add core/app/models/spree/variant/pricing_options.rbgit commit -m "better docs for Spree::Variant::PricingOptions#search_arguments"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--Variant--PricingOptions-search_arguments-for-pr
hub pull-request
# Celebrate!