C2S Posted July 29, 2015 Share Posted July 29, 2015 Beste leden, Momenteel gebruik ik PrestaShop 1.6 en ondervind ik een paar problemen met de contactform. In ContactController.php staat: if (empty($contact->email)) Mail::Send($this->context->language->id, 'contact_form', ((isset($ct) && Validate::isLoadedObject($ct)) ? sprintf(Mail::l('Your message has been correctly sent #ct%1$s #tc%2$s'), $ct->id, $ct->token) : Mail::l('Your message has been correctly sent')), $var_list, $from, null, null, null, $file_attachment); else { if (!Mail::Send($this->context->language->id, 'contact', Mail::l('Message from contact form').' [no_sync]', $var_list, $contact->email, $contact->name, $from, ($customer->id ? $customer->firstname.' '.$customer->lastname : ''), $file_attachment) || !Mail::Send($this->context->language->id, 'contact_form', ((isset($ct) && Validate::isLoadedObject($ct)) ? sprintf(Mail::l('Your message has been correctly sent #ct%1$s #tc%2$s'), $ct->id, $ct->token) : Mail::l('Your message has been correctly sent')), $var_list, $from, null, $contact->email, $contact->name, $file_attachment)) $this->errors[] = Tools::displayError('An error occurred while sending the message.'); In principe kan ik "sprintf(Mail::l('Your message has been correctly sent #ct%1$s #tc%2$s')" natuurlijk wijzigen en ct% e.d. weg halen. Ik wilde echter weten waar deze variabelen op slaan en of het verdere gevolgen heeft voor de contactform. Ook kan ik [no_sync] weghalen. Dit heb ik ook al gedaan. Wat zijn hiervan de gevolgen , behalve en netter subject. 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