Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

malikin

Newbie
  
  • Posts

    6
  • Joined

  • Last visited

malikin's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

-1

Reputation

  1. у хостера лежат копии ваших файлов, поищите в бэкапе. Новые данные потеряете
  2. Подскажите как сделать отправку файла из контактной формы? Письма приходят без файла Сделал так: information/contact.tpl <input type="file" name="file" id="file1" /> /information/contact.php 22 строка if (file_exists($_FILES['file']['tmp_name'])) { $tempdir = (DIR_DOWNLOAD)."/temp/"; //<-----------absolute path to opencart /yoursitefolder/download/temp/ (located in config.php) $fileName = $_FILES['file']['name']; $imageTemp = $tempdir.$fileName; move_uploaded_file($_FILES['file']['tmp_name'], $tempdir.$fileName); $mail->addAttachment($tempdir.$fileName); } и на 74 строку if (isset($this->error['file'])) { $this->data['error_file'] = $this->error['file']; } else { $this->data['error_file'] = ''; } и на 106 строку if (isset($this->request->post['file'])) { $this->data['file'] = $this->request->post['file']; }
  3. в любом месте куда хотите, вставьте <a href="<?php echo $contact; ?>"><?php echo $text_contact; ?></a>
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.