Jump to content

Where to edit Customer Service Back Office


Recommended Posts

Ok so i found the correct file to edit which is IndexController in controllers/front/

 

The next issue i have is i need to allow <br /> tags or something similar to seperate the flow of content in this section of the page, here is my code and what it looks like and if anyone can point me in the right direstion to make an unordered list that would be most grateful.

Db::getInstance()->executeS("INSERT INTO `ps_customer_thread`(`id_shop`, `id_lang`, `id_contact`, `id_customer`, `id_order`, `id_product`, `status`, `email`, `token`,date_add,date_upd) VALUES ($id_shop,$id_lang,0,$id_customer,0,0,'".$status."','".$email."','".$token."','".$dateadd."','".$dateupdate."')",'INSERT');
$id_customer_thread = Db::getInstance()->Insert_ID(); 
//echo $id_customer_thread;
//$message = $_POST['message'];
$parts = $_POST['products'];
$parts = implode(",", $parts);
$message = '';
$message = "Dear Bob / Chris, Customer : ".$_POST['firstName']." ".$_POST['lastName']."  requested a quote for parts on the following vehicle : ".$_POST['vehiclemodel']."  ,".$_POST['vehicle_registration'].", ".$_POST['vehicle_make'].", Parts : ( ".$parts." ). Inquiry Message: ".$_POST['message'].", Response at ".$_POST['email'].".";
 
Db::getInstance()->executeS("INSERT INTO `ps_customer_message`(`id_customer_thread`, `id_employee`, `message`,  `date_add`, `date_upd`) VALUES ($id_customer_thread,0,'".$message."','".$dateadd."','".$dateupdate."') ");
}
else
 
post-632913-0-54688700-1442862441_thumb.png

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...