Changeset 1244
- Timestamp:
- 11/12/06 17:25:03 (2 years ago)
- Files:
-
- peasantonline/app/controllers/catalog_controller.rb (modified) (2 diffs)
- peasantonline/app/models/order.rb (modified) (1 diff)
- peasantonline/app/views/admin/_order.rhtml (modified) (1 diff)
- peasantonline/public/images/products (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
peasantonline/app/controllers/catalog_controller.rb
r1232 r1244 165 165 rescue 166 166 # FIXME: this should go back to checkout, not to homepage: 167 remove_bad_order() 167 168 redirect_to_index("Card was rejected: #{@transaction.error_message}") 168 169 end … … 176 177 177 178 private 179 180 def remove_bad_order() 181 # Remove bad order 182 for line_item in @order.line_items 183 LineItem.find(line_item.id).destroy 184 end 185 186 Order.find(@order.id).destroy 187 end 178 188 def find_cart 179 189 session[:cart] ||= Cart.new peasantonline/app/models/order.rb
r1242 r1244 14 14 AjaxScaffold::ScaffoldColumn.new(self, { :name => "email", :label => "Email"}), 15 15 AjaxScaffold::ScaffoldColumn.new(self, { :name => "status", :label => "Status"}), 16 AjaxScaffold::ScaffoldColumn.new(self, { :name => "comments", :label => "Comments", :sortable => false}), 16 17 AjaxScaffold::ScaffoldColumn.new(self, { :name => "items", :label => "# of Items", :sortable => false}), 17 18 AjaxScaffold::ScaffoldColumn.new(self, { :name => "total", :label => "Order Total", :sortable => false}) peasantonline/app/views/admin/_order.rhtml
r1243 r1244 8 8 <td><%= order.email %> </td> 9 9 <td><%= order.status %> </td> 10 <td><%= order.comments %> </td> 10 11 <td><%= 11 12 sum = 0 peasantonline/public/images/products
- Property svn:ignore set to
1
2
3
4
5
6
7
8
9
- Property svn:ignore set to