Neues Feld in E-Mailformular


german 20434

Neues Feld in E-Mailformular

Finde in der contact_us.php

      $name = tep_db_prepare_input($HTTP_POST_VARS['name']);
      $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']);
      $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);

Ersetze mit:

    $name = tep_db_prepare_input(ucwords($_POST['name']));
    $email_address = tep_db_prepare_input($_POST['email']);
    $phone = tep_db_prepare_input($_POST['phone']);
    $subject = tep_db_prepare_input(ucwords($_POST['subject']));
    $enquiry = tep_db_prepare_input(ucwords($_POST['enquiry']));

        $text = ENTRY_NAME . ' ' . $name
           . "n" . TEXT_CUSTOMMER_NR . ' ' . $customer_id
           . "n" . ENTRY_TELEPHONE_NUMBER . ' ' . $phone
           . "n" . ENTRY_EMAIL . ' ' . $email_address
           . "nn" . BOX_HEADING_SUBJECT . ' ' . $subject
           . "n" . ENTRY_ENQUIRY . "n" . $enquiry;

Finde:

      if ($error == false) {
          tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);

Ersetze mit:

      if ($error == false) {
          tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $text, $name, STORE_OWNER_EMAIL_ADDRESS, $phone);

Finde:

      <tr>
        <td class="fieldKey"><?php echo ENTRY_NAME; ?></td>
        <td class="fieldValue"><?php echo tep_draw_input_field('name'); ?></td>
      </tr>
      <tr>
        <td class="fieldKey"><?php echo ENTRY_EMAIL; ?></td>
        <td class="fieldValue"><?php echo tep_draw_input_field('email'); ?></td>
      </tr>

Ersetze mit:

      <tr>
        <td class="fieldKey"><?php echo ENTRY_NAME; ?></td>
        <td class="fieldValue">
        <?php if (isset($_SESSION['customer_id'])) {
        echo (isset($account['name']) ? tep_draw_hidden_field('name',$name) : tep_draw_input_field('name', $name, 'size="45" maxlength="45" required aria-required="true" readonly="readonly" id="inputFromName" placeholder="' . ENTRY_NAME . '"'));
        }else{
        echo (isset($account['name']) ? tep_draw_hidden_field('name',$name) : tep_draw_input_field('name', $name, 'size="45" maxlength="45" required aria-required="true" id="inputFromName" placeholder="' . ENTRY_NAME . '"'));
        }?>
        </td>
      </tr>
      <tr>
        <td class="fieldKey"><?php echo ENTRY_EMAIL; ?></td>
        <td class="fieldValue"><?php echo (isset($account['email']) ? $email . tep_draw_hidden_field('email',$email) : tep_draw_input_field('email', $email, 'size="45" maxlength="45" required aria-required="true" id="inputFromEmail" placeholder="' . ENTRY_EMAIL . '"')); ?></td>
      </tr>
      <tr>
        <td class="fieldKey"><?php echo ENTRY_TELEPHONE_NUMBER; ?></td>
        <td class="fieldValue"><?php echo (isset($account['phone']) ? $phone . tep_draw_hidden_field('phone',$phone) : tep_draw_input_field('phone', $phone, 'size="45" maxlength="45" required aria-required="true" id="inputFromPhone" placeholder="' . ENTRY_TELEPHONE_NUMBER . '"')); ?></td>
      </tr>
      <tr>
        <td class="fieldKey"><?php echo BOX_HEADING_SUBJECT; ?></td>
        <td class="fieldValue"><?php echo tep_draw_input_field('subject', $subject, 'size="45" maxlength="45" required aria-required="true" id="inputFromSubject" placeholder="' . BOX_HEADING_SUBJECT . '"'); ?></td>
      </tr>

in catalog/includes/languages/german/contact_us.php
Füge hinzu:

define('BOX_HEADING_SUBJECT', 'Betreff:');
define('ENTRY_TELEPHONE_NUMBER', 'Telefonnummer:');

Durchschnitliche Gesamtbewertung
 aus 2 Bewertungen
Vergeben 2 x 5  Sterne
Warum Ihre E-Mailadresse ?
Bei Bedarf werde ich Sie kontaktieren um Ihnen mit der Umsetzung zu helfen.
Ihre E-Mailadresse wird nicht öffentlich gemacht.
Ist dieser Beitrag für Sie hilfreich ?
Informationen(1)
Allgemeine Infos
 Kostenloser Werbeeintrag
Beitragszähler
Momentaner Informationsstand:
Kategorien gesamt: 9
Beiträge gesamt: 104
Supportseiten gesamt: 57
Downloads für Mitglieder: 104
Getätigte Downloads: 646
Bewertungen gesamt76
Firmenbewertungen: 34
Supportbewertungen: 35
Beitragsbewertungen: 7