Changeset 1176

Show
Ignore:
Timestamp:
10/11/06 15:08:36 (2 years ago)
Author:
james
Message:

fixes to cart controller

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • peasantonline/app/controllers/catalog_controller.rb

    r1152 r1176  
    152152                # FIXME: this should all be done on thanks, and the cart not cleared here, but this was more foolproof at the moment... 
    153153                # we should also show the cc number in XXXX XXXX XXXX 1234 format here 
    154                 redirect_to_thanks( 
    155                   "Card processed successfully: #{@transaction.authorization}<p />" + " <b>Order details</b>:<br /> #{@order.first_name} #{@order.last_name}<p />" + " #{@order.address}<br />" + " #{@order.address_2}<br />" + " #{@order.city}, " + " #{@order.state}<br />" + " #{@order.zip}, " + "#{@order.country}<br />" + " #{@order.phone}<br />" + " #{@order.email}<p />" + " Comments: #{@order.comments}<p />" + " Sub-total: $#{@cart.total_price}<br />" + " Sales Tax: $#{@order.sales_tax}<br />" + " Shipping: &nbsp;$#{@order.shipping}<br />" + "------------------<br />" + " Total: &nbsp; &nbsp; $" + (@cart.total_price + @order.sales_tax + @order.shipping).to_s) 
     154                #redirect_to_thanks( 
     155                #  "Card processed successfully: #{@transaction.authorization}<p />" + " <b>Order details</b>:<br /> #{@order.first_name} #{@order.last_name}<p />" + " #{@order.address}<br />" + " #{@order.address_2}<br />" + " #{@order.city}, " + " #{@order.state}<br />" + " #{@order.zip}, " + "#{@order.country}<br />" + " #{@order.phone}<br />" + " #{@order.email}<p />" + " Comments: #{@order.comments}<p />" + " Sub-total: $#{@cart.total_price}<br />" + " Sales Tax: $#{@order.sales_tax}<br />" + " Shipping: &nbsp;$#{@order.shipping}<br />" + "------------------<br />" + " Total: &nbsp; &nbsp; $" + (@cart.total_price + @order.sales_tax + @order.shipping).to_s) 
    156156 
    157157              begin