Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue on documentation
Browse files Browse the repository at this point in the history
Fix an issue with the documentation related to the custom configuration
of the stock location filter and sorter. The way it was documented
didn't work.
gugaiz committed Jan 24, 2020
1 parent e759105 commit 97be617
Showing 3 changed files with 15 additions and 7 deletions.
6 changes: 3 additions & 3 deletions guides/source/developers/shipments/stock-allocator.html.md
Original file line number Diff line number Diff line change
@@ -50,9 +50,9 @@ For example, you can register it in your `/config/initializer/spree.rb` initiali
```ruby
# /config/initializer/spree.rb
Spree.config do |config|
# ...
# ...

config.stock.allocator_class = 'Spree::Stock::Allocator::CustomAllocator'
end
config.stock.allocator_class = 'Spree::Stock::Allocator::CustomAllocator'
# ...
end
```
Original file line number Diff line number Diff line change
@@ -42,6 +42,10 @@ For example, you can register it in your `/config/initializers/spree.rb` initial

```ruby
# /config/initializers/spree.rb

Rails.application.config.spree.stock.location_filter_class = 'Spree::Stock::LocationFilter::SameOrderCountry'
Spree.config do |config|
# ...

config.stock.location_filter_class = 'Spree::Stock::LocationFilter::SameOrderCountry'
# ...
end
```
Original file line number Diff line number Diff line change
@@ -40,6 +40,10 @@ For example, you can register it in your `/config/initializers/spree.rb` initial

```ruby
# /config/initializers/spree.rb

Rails.application.config.spree.stock.location_sorter_class = 'Spree::Stock::LocationSorter::Priority'
Spree.config do |config|
# ...

config.stock.location_sorter_class = 'Spree::Stock::LocationSorter::Priority'
# ...
end
```

0 comments on commit 97be617

Please sign in to comment.