Hey Lydia,
This feature does take a little bit of theme magic to take the full advantage of it, but the basic concept works by default.
For example, on the vehicle contact pages the contact form can be trigger to go to a specific sales person based on vehicle condition & location information.
So if you had two different rooftops and a salesman named X, then you can go to X’s profile and set what forms he can receive. You can also find their affiliate URL, if the salescode query is used on any page it will drop a cookie on the visitors system that flags bill’s contact information to be populated in the vehicle contact widget form and alternatively can display his phone number.
You can also use the shortcode [highlight_staff] to show a staff person’s profile if a cookie has been dropped on the visitor’s system.
The banners on the front page of the demo are simply flags put into the theme to check and see if there is a sales_code cookie, if there is it retrieves the image preset for that sales person.
Here’s some sample code
if (isset($_COOKIE["sales_code"])) {
$sales_code = $_COOKIE["sales_code"];
} else {
$sales_code = '';
}
if ($sales_code) {
$custom_user_id = $_COOKIE["sales_code"];
$custom_slide_img = get_the_author_meta('slider_image', $custom_user_id);
if (!empty($custom_slide_img)) {
$custom_slide_link = get_the_author_meta('slider_link', $custom_user_id);
$custom_slide_text = get_the_author_meta('slider_description', $custom_user_id);
$custom_slide_title = get_the_author_meta('slider_title', $custom_user_id);
$car .= car_demon_custom_slide($custom_slide_img,$custom_slide_link,$custom_slide_text,$custom_slide_title);
$stop_at = $stop_at+1;
$start = $start + 1;
}
}