New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

spree_location_prioritizer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spree_location_prioritizer

  • 3.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

SpreeLocationPrioritizer

Spree 3.0 has the priotitizer to sort the package capability but not implemented. This gem/extenstion assume every stock location has its own serving countries and priorities. Example, stock location with priorities as {"ca" => 1, "all" => 0, "us" => 10000} , and location with prioties as {"ca" => 10000} The second location should serve Canadian customers when possible.

The coordinator will put all items into one package and ship from one warehouse. It will will not check the on_hand_count. If you want remove one item away from one stock location, delete it from the item location lists, not just set the on_hand_count to 0.

Installation

Add spree_location_prioritizer to your Gemfile:

gem 'spree_location_prioritizer'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_location_prioritizer:install

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle
bundle exec rake

When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:

require 'spree_location_prioritizer/factories'

Copyright (c) 2014 [name of extension creator], released under the New BSD License

FAQs

Package last updated on 23 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc