Combining UE and eCart

Combining UE and eCart

Hi,

I'm using eCart (v5.0.7) with UE (v4.0.1) to process and acknowledge orders. Here's the "issue":

I accept a customer order, write the order details (including validated data of name, email etc - using server side validations & form toolkit - combined with each line of the order using the cart->DisplayInfo method) to a file for internal processing and send an email to the customer in acknowledgement of their order. To date all that email contained was a simple "Thanks. Your order is being processed" but all has worked fine.

Now I'm trying to include the individual items that comprise the order in the email acknowledgement by using a WHILE loop to echo each of the order lines from the same method of cart->DisplayInfo.

Unfortunately things fall over & the previously successful UE generated email doesn't send. In fact, the page that has been sending and displaying an on-screen "thanks" message, isn't even rendering to the browser - instead the actual content of the UE email message is being rendered up until the point in the code where the WHILE loop starts (meant to display, in the email, each of the lines ordered) - nothing in the html after that point is proessed or rendered.

I'm pretty sure this is an issue with grabbing the session variables from the eCart object but can't figure out where it's going wrong as the process to write the data to our internal file is still successful (so the session variables are still accessible for the part of the process - they just seem to screw things up when called later when trying to generate & send the UE acknowledgement email.

to add the cart display to the email message, edit the universal email behavior, click the DW Edit button to edit the body, and add the eCart display manager to the email body. Select to use the email friendly display type.