Prestawise Posted March 9, 2012 Share Posted March 9, 2012 Hej med jer.. Nogen der ved hvordan man slår det fra sådan at kunden ikke modtager en bekræftelsesmail på at de har sendt en besked via. kontakt formularen? /Napz Ver. 1.4.2.5 Link to comment Share on other sites More sharing options...
presta-dyr Posted March 9, 2012 Share Posted March 9, 2012 Kig i controllers/ContactController.php og søg efter Send::Mail. Den pæne måde at gøre det på, er at oprette en ny ContactController.php-fil i override/controllers og så definere en klasse med: class ContactController extends ContactControllerCore { public function preProcess() { ... } } /Kjeld Link to comment Share on other sites More sharing options...
Prestawise Posted March 10, 2012 Author Share Posted March 10, 2012 Hej Kjeld Tak for dit svar, men er ikke helt sikker på hvad du mener.. Hvordan skal jeg definere klassen? Kan man ikke "comment out" noget at det jeg har fundet i ContactController.php if (!empty($contact->email)) { if (Mail::Send((int)(self::$cookie->id_lang), 'contact', Mail::l('Message from contact form'), array('{email}' => $from, '{message}' => stripslashes($message)), $contact->email, $contact->name, $from, ((int)(self::$cookie->id_customer) ? $customer->firstname.' '.$customer->lastname : ''), $fileAttachment) AND Mail::Send((int)(self::$cookie->id_lang), 'contact_form', Mail::l('Your message has been correctly sent'), array('{message}' => stripslashes($message)), $from)) self::$smarty->assign('confirmation', 1); else $this->errors[] = Tools::displayError('An error occurred while sending message.'); } /Napz Link to comment Share on other sites More sharing options...
presta-dyr Posted March 11, 2012 Share Posted March 11, 2012 Jo, du kan fjerne det der står efter "AND" på nær parantesen. /Kjeld Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now