Jump to content
xt:Commerce Community Forum

Bei Gastbestellung Email als Pflichtfeld?


Recommended Posts

In der Datei create_guest_account.php nach folgendem Code suchen:

if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) {
$error = true;

$messageStack->add('create_account', ENTRY_STREET_ADDRESS_ERROR);
}[/php]

davor folgenden Codeblock einfügen:

[php]if (strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) {
$error = true;
$messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR);
}
elseif (xtc_validate_email($email_address) == false) {
$error = true;
$messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
}

Fertig!

MfG Hetfield :cool:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...