I'm creating a Spree application using Spree version 3.1 and i'm facing an issue where spree split order into two shipments with double shipping cost if any line item of the order is out of stock even if i'm using
Rails.application.config.spree.stock_splitters = []
which according to documentation prevent order splitting
Or if you don't want to split packages just set the option above to an empty array. e.g. a store with the following configuration in spree.rb won't have any package splitted.
any solution for this issue ?!
I've solved this issue by overriding register stock splitter initializer
initializer 'spree.register.stock_splitters' do |app|
app.config.spree.stock_splitters = []
end