Sha256: 560b4db01526f07ffe2a56550a82be73a6ad03d93aa60b6e24dcd162c28c915b
Contents?: true
Size: 522 Bytes
Versions: 3
Compression:
Stored size: 522 Bytes
Contents
Spree::OrdersController.class_eval do def update @order = current_order if @order.update_attributes(params[:order]) if @order.coupon_code.present? fire_event('spree.checkout.coupon_code_added', :coupon_code => @order.coupon_code) end @order.line_items = @order.line_items.select {|li| li.quantity > 0 } fire_event('spree.order.contents_changed') respond_with(@order) { |format| format.html { redirect_to cart_path } } else respond_with(@order) end end end
Version data entries
3 entries across 3 versions & 1 rubygems