Closed onedanshow closed 10 years ago
The set inventory handler should also search by admin / internal name. Something like:
stock_location = Spree::StockLocation.find_by_name(stock_location_name) || Spree::StockLocation.find_by_admin_name(stock_location_name)
For here: https://github.com/spree/spree_wombat/blob/master/lib/spree/wombat/handler/set_inventory_handler.rb#L9
For us, our ERP spits out inventory levels with a warehouse code of "WBDS_P". That's great for an internal name, but not to display to the user on the Spree checkout page.
Just a thought.
Would you mind submitting a PR?
Pull request made.
closing out in favor of the pr thread
The set inventory handler should also search by admin / internal name. Something like:
For here: https://github.com/spree/spree_wombat/blob/master/lib/spree/wombat/handler/set_inventory_handler.rb#L9
For us, our ERP spits out inventory levels with a warehouse code of "WBDS_P". That's great for an internal name, but not to display to the user on the Spree checkout page.
Just a thought.