close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to track promoters for sales

Thread began 8/19/2010 1:16 pm by Nenad | Last modified 8/25/2010 10:26 am by Jason Byrnes | 611 views | 3 replies |

Nenad

How to track promoters for sales

Hello,

We have promoters sending customers to our website and we need a way to track which promoter gets which sales. Lets say a customer was referred by promoter #1 to our website and this customer purchases a product. How do we create the option for the customer to input a promoter code for promoter #1 in an input field at checkout so that we may keep track of which promoters are making which sales?

Thank you in advance for your help!
Nenad

Sign in to reply to this post

Jason ByrnesWebAssist

you could add a form input to the cehckout page:
<input name="promoter" type="text" id="promoter" value="
" />




and add a hidden form element of the same name on the confirm page to capture the value passed from checkout:
<input name="promoter" type="hidden" id="promoter" value="<?php echo((isset($_POST["promoter"]))?$_POST["promoter"]:"") ?>" />

also on the confirm page, capture the promoter into a session variabl.

Go to the server behaviors panel and click the plus button. Select eCart -> General -> Set Session Value.

set the trigger to any form post.
Set the name to promoter
click the lightning bolt next to value and select the promoter form element.


finally, you will want to add a promoter column to the orders table.

then edit the eCart Store Order Summary on the confirm page, bind the promoter table column to the promoter session variable.

Sign in to reply to this post

Nenad

Thank you for your help!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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...