close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

New field in Email receipt

Thread began 6/01/2010 11:20 am by Badger | Last modified 6/07/2010 8:10 am by Jason Byrnes | 1378 views | 3 replies |

Badger

New field in Email receipt

I've had to add a couple of new fields (Title and County) to my visitor (user) table and am trying to retrospectively make them appear everywhere they need to. I'm just about there but cannot see how the checkout form session is migrating to the email receipt generated from the success page. I've tried unsuccessfully duplicating the code:

$MailBody = $MailBody . ((isset($_SESSION["eCartCheckoutForm_county"]))?$_SESSION["eCartCheckoutForm_county"]:"");

Is there a helper file or somewhere else where the ecartCheckoutForm session is carried over?

Sign in to reply to this post

Jason ByrnesWebAssist

On the confirm page, there is a code block for each form element to capture the posted value into a session variable. For the city form element, the code added looks like:

php:
<?php

if (!session_id()) session_start();
if(
$_SERVER["REQUEST_METHOD"] == "POST")     {
  
$_SESSION["eCartCheckoutForm_city"] = "".((isset($_POST["city"]))?$_POST["city"]:"")  ."";
}
?>




there is also a hidden form element added near the bottom of the confirm page:

php:
<input type="hidden" name="city" id="city" value="<?php echo ((isset($_SESSION["eCartCheckoutForm_city"]))?$_SESSION["eCartCheckoutForm_city"]:""?>" />




for you county and title elements to function proper;y, you will need to add the code for setting the session variable, as well as add the hidden form element.

Sign in to reply to this post

Badger

I hadn't copied the "hidden" code at the bottom of the confirm page. So now the title and county carries over to the email generated from the checkout_success page.

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

excellent, glad to hear it is working.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...