This page does not apply to the Lite version of the cart.
Whey Hey!!!
Were on the last page! This page cart/finish.aspx is the page that would normally be invoked by your payment merchant's postback/redirect feature, this page can be used to save the order status based on a return value from the payment merchants server and also sends the customer and invoice.
Begin by opening the cart/finish.aspx and inserting a cart control and as you probably guessed by now give it an ID of "Cart1".
Next insert a Send Mail control and the following dialog will appear:
Define the properties as shown in the dialog image:
Cart = select "Cart1" from the dropdown box
Action = select "Make From Mail Template" from the dropdown box
DisplayBody = true (check the box)
OnlySendIf = <%# Cart1.Count > 0 %>
Next navigate to the "Common" section and the dialog will change to look like the following image:
This section of the dialog should be fairly self-explanitory what should go where. This is used to define who gets the invoice and general message properties.
Next navigate to the "Invoicing" section and the dialog will change to look like the following image:
Browse to and select the invoice_template.htm file in the cart folder, for details on how to make these mail template files and how to define it's place holders refer to the carts main help files as this is well documented there.
Now click the "OK" button on the dialog and the "webxelcart:sendmail" tag will be inserted into the page.
When this page is viewed the control will first check that the OnlySendIf expression evaluates to true, if it does then the mail is sent and because the DisplayBody property is true the body portion of the message will be displayed in the page as a visual response to the user.