Skip to content
dirkkelly edited this page Sep 27, 2010 · 4 revisions

Checkout

Configuration

  # When a cart is successfully processed the user is taken here
  Radiant::Config['shop.cart_thanks_path'] = 'cart/thanks' 

Pages

  • /cart list all the products in the cart
  • /cart/addresses get the users shipping and billing
  • /cart/payment take payments (using an activemerchant gateway)
  • /cart/thanks successful payment result page (will need to match Radiant::Config['shop.cart_thanks_path'])

/Cart

  • Create a new Page
  • Set the Page Type to Form (this removes the caching)
  • Set the Status to Published

You will want the following information

screenshot

  <r:shop:cart:items:each:item>
    <r:name />
    <r:quantity />
    <r:price />
    <r:remove />
  </r:shop:cart:items:each:item>

  <r:shop:cart:price />

/Cart/Addresses

This page is a container for the ShopAddresses form, you will use it to collect the billing (and optionally shipping) address of the customer)

  • Create a new Page
  • Set the Page Type to Form (this removes the caching)
  • Set the Status to Published

Forms

  • AddItemToCart Adds a product to the shopping cart
  • UpdateCartItem Updates a product within the shopping cart
  • CheckoutAddresses Gets the users billing and shipping addresses
  • CheckoutGateWayName Collects payment of the shopping cart
Clone this wiki locally