Jump to content

Kvittering til kunde (contact-form)


Prestawise

Recommended Posts

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

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

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