changes to make it wholesale extension work with spree 1.3.2