Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
что это за зараза такая ?includes\classes\product.php
у Вам SMF форум прикручен, что мешает прикрутить любой другой? у него даже общая регистрация не сделана
что это за зараза такая ?
или это к новой версии уже не относится
# configuration_group_id 12
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_TRANSPORT', 'mail', 12, 1, NULL, '', NULL, 'os_cfg_select_option(array(\'sendmail\', \'smtp\', \'mail\'),');
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('SENDMAIL_PATH', '/usr/sbin/sendmail', 12, 2, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('SMTP_MAIN_SERVER', 'localhost', 12, 3, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('SMTP_Backup_Server', 'localhost', 12, 4, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('SMTP_PORT', '25', 12, 5, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('SMTP_USERNAME', '', 12, 6, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('SMTP_PASSWORD', '', 12, 7, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('SMTP_AUTH', 'false', 12, 8, NULL, '', NULL, 'os_cfg_select_option(array(\'true\', \'false\'),');
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_LINEFEED', 'LF', 12, 9, NULL, '', NULL, 'os_cfg_select_option(array(\'LF\', \'CRLF\'),');
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_USE_HTML', 'false', 12, 10, NULL, '', NULL, 'os_cfg_select_option(array(\'true\', \'false\'),');
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('ENTRY_EMAIL_ADDRESS_CHECK', 'false', 12, 11, NULL, '', NULL, 'os_cfg_select_option(array(\'true\', \'false\'),');
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('SEND_EMAILS', 'true', 12, 12, NULL, '', NULL, 'os_cfg_select_option(array(\'true\', \'false\'),');
# Constants for contact_us
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('CONTACT_US_EMAIL_ADDRESS', 'contact@name.com', 12, 20, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('CONTACT_US_NAME', '', 12, 21, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('CONTACT_US_REPLY_ADDRESS', '', 12, 22, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('CONTACT_US_REPLY_ADDRESS_NAME', '', 12, 23, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('CONTACT_US_EMAIL_SUBJECT', '', 12, 24, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('CONTACT_US_FORWARDING_STRING', '', 12, 25, NULL, '', NULL, NULL);
# Constants for support system
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_SUPPORT_ADDRESS', 'support@name.com', 12, 26, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_SUPPORT_NAME', 'Название службы поддержки', 12, 27, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_SUPPORT_REPLY_ADDRESS', '', 12, 28, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_SUPPORT_REPLY_ADDRESS_NAME', '', 12, 29, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_SUPPORT_SUBJECT', '', 12, 30, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_SUPPORT_FORWARDING_STRING', '', 12, 31, NULL, '', NULL, NULL);
# Constants for billing system
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_BILLING_ADDRESS', 'billing@name.com', 12, 32, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_BILLING_NAME', 'Службу обработки счетов', 12, 33, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_BILLING_REPLY_ADDRESS', '', 12, 34, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_BILLING_REPLY_ADDRESS_NAME', '', 12, 35, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_BILLING_SUBJECT', '', 12, 36, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_BILLING_FORWARDING_STRING', '', 12, 37, NULL, '', NULL, NULL);
INSERT INTO os_configuration (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('EMAIL_BILLING_SUBJECT_ORDER', 'Ваш заказ номер {$nr}', 12, 38, NULL, '', NULL, NULL);
INSERT INTO os_configuration_group VALUES ('12', 'CG_EMAIL', 'E-Mail Options', 'General setting for E-Mail transport and HTML E-Mails', '12', '1');
global $mail_error;
$mail = new PHPMailer();
$mail->PluginDir = _LIB.'phpmailer/';
if (isset ($_SESSION['language_charset']))
{
$mail->CharSet = $_SESSION['language_charset'];
}
else
{
$lang_query = "SELECT * FROM ".TABLE_LANGUAGES." WHERE code = '".DEFAULT_LANGUAGE."'";
$lang_query = os_db_query($lang_query);
$lang_data = os_db_fetch_array($lang_query);
$mail->CharSet = $lang_data['language_charset'];
}
if ($_SESSION['language'] == 'ru')
{
$mail->SetLanguage("ru", _LIB.'phpmailer/language/');
}
else
{
$mail->SetLanguage("en", _LIB.'phpmailer/language/');
}
if (EMAIL_TRANSPORT == 'smtp')
{
$mail->IsSMTP();
$mail->SMTPKeepAlive = true; // set mailer to use SMTP
$mail->SMTPAuth = SMTP_AUTH; // turn on SMTP authentication true/false
$mail->Username = SMTP_USERNAME; // SMTP username
$mail->Password = SMTP_PASSWORD; // SMTP password
$mail->Host = SMTP_MAIN_SERVER.';'.SMTP_Backup_Server; // specify main and backup server "smtp1.example.com;smtp2.example.com"
}
if (EMAIL_TRANSPORT == 'sendmail')
{ // set mailer to use SMTP
$mail->IsSendmail();
$mail->Sendmail = SENDMAIL_PATH;
}
if (EMAIL_TRANSPORT == 'mail')
{
$mail->IsMail();
}
if (EMAIL_USE_HTML == 'true') // set email format to HTML
{
$mail->IsHTML(true);
$mail->Body = $message_body_html;
// remove html tags
$message_body_plain = str_replace('<br />', " \n", $message_body_plain);
$message_body_plain = strip_tags($message_body_plain);
$mail->AltBody = $message_body_plain;
}
else
{
$mail->IsHTML(false);
//remove html tags
$message_body_plain = str_replace('<br />', " \n", $message_body_plain);
$message_body_plain = strip_tags($message_body_plain);
$mail->Body = $message_body_plain;
}
$mail->From = $from_email_address;
$mail->Sender = $from_email_address;
$mail->FromName = $from_email_name;
$mail->AddAddress($to_email_address, $to_name);
if ($forwarding_to != '') $mail->AddBCC($forwarding_to);
$mail->AddReplyTo($reply_address, $reply_address_name);
$mail->WordWrap = 100; // set word wrap to 50 characters
//$mail->AddAttachment($path_to_attachement); // add attachments
//$mail->AddAttachment($path_to_more_attachements); // optional name
$mail->Subject = $email_subject;
if (!$mail->Send())
{
echo TEXT_PHP_MAILER_ERROR;
echo TEXT_PHP_MAILER_ERROR1 . $mail->ErrorInfo;
exit;
}
Для этого нужно редактировать файл /scripts/templates/frontend/category.tpl.htmlМожно ли сделать так что бы в некоторых категориях выводились подкатегории и под ними список всех товаров этой категории.
И как сделать что бы около кнопки купить было поле для ввода количества товара(так же как на странице товара), я так понимаю там придется править не только шаблон