On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Здравствуйте, есть сайт в котором английская и русская версия (https://balt-montage.ru/), когда форму отправляется с русской версии, то приходят сообщения, а когда с английской то нет, в чем может быть проблема? Отправляю форму через formit подключенного к ajaxform, вот форма английской версии, она идентична русской, но сообщения так и не приходят:
    Вот чанки:
    <div id="ask-cp" class="fancybox-hidden">
    			{if $_modx->context.key == 'en'}
    				{var $cp_formit_form = '@FILE chunks/callback/cp/en/form.tpl'}
    				{var $cp_formit_mail = '@FILE chunks/callback/cp/en/mail.tpl'}
    				{var $cp_formit_error = 'Please fill in all required fields'}
    				{var $cp_formit_success = 'Message sent successfully'}
    			{else}
    				{var $cp_formit_form = '@FILE chunks/callback/cp/ru/form.tpl'}
    				{var $cp_formit_mail = '@FILE chunks/callback/cp/ru/mail.tpl'}
    				{var $cp_formit_error = 'Пожалуйста, заполните все требуемые поля'}
    				{var $cp_formit_success = 'Сообщение успешно отправлено'}
    			{/if}
    			
    			{$_modx->runSnippet('!AjaxForm', [
    				'snippet' => 'FormIt',
    				'emailSubject' => 'Запрос КП с сайта BALT MONTAGE',
    				'emailTo' => $_modx->config.contacts_mail,
    				'emailFrom' => $_modx->config.contacts_mail,
    				'hooks' => 'recaptchav2,FormItSaveForm,email',
    				'form' => $cp_formit_form,
    				'emailTpl' => $cp_formit_mail,
    				'validate' => 'name,email:required,services:required,object:required,timing,time,budget,additional,contacts:required,g-recaptcha-response:required',
    				'validationErrorMessage' => $cp_formit_error,
    				'successMessage' => $cp_formit_success,
    				'frontend_css' => '',
    			])}
    		</div>

    <div class="inner-content">
    	<h1>Commersial proposal</h1>
    	<p><span style="color:#900;"></span></p>
    
    	<form class="b-form big-inputs" id="callback-form" method="post" action="">
    		<label for="name">Your name</label>
    		<input type="text" name="name" class="grid_3" value="{$_pls['fi.name']}">
    
    		<label for="email">Your E-mail</label>
    		<input type="text" name="email" class="grid_3" value="{$_pls['fi.email']}">
    
    		<label for="services">Required services/works</label>
    		<input type="text" name="services" class="grid_3" value="{$_pls['fi.services']}" placeholder="Please indicate which services or You are interested in">
    		
    		<label for="object">Object (Customer, the address of manufacture of works)</label>
    		<input type="text" name="object" class="grid_3" value="{$_pls['fi.object']}" placeholder="Please specify Your company name and address of manufacture of works">
    		
    		<p></p>
    		
    		<label for="timing">The timing of the provision KP</label>
    		<input type="text" name="timing" class="grid_3" value="{$_pls['fi.timing']}" placeholder="Please specify terms of providing the technical and commercial offer">
    		
    		<label for="time">Required time of the works</label>
    		<input type="text" name="time" class="grid_3" value="{$_pls['fi.time']}" placeholder="Please indicate the required turnaround time">
    		
    		<p></p>
    		
    		<label for="budget">Budget</label>
    		<input type="text" name="budget" class="grid_3" value="{$_pls['fi.budget']}" placeholder="If You have the budget or target price, please specify">
    		
    		<p></p>
    		
    		<label for="additional">Additional information</label>
    		<textarea name="additional" class="grid_6" cols="50" rows="10" placeholder="Please specify any other information you think is important">{$_pls['fi.additional']}</textarea>
    		
    		<label for="contacts">Contact information</label>
    		<textarea name="contacts" class="grid_6" cols="50" rows="10" placeholder="Please specify Your contact information for sending KP and feedback">{$_pls['fi.contacts']}</textarea>
    			
    		<button class="btn-pink-bigger btn-pink-icon btn-margin" name="submit" type="submit">Send</button>
    	</form>

    <p><b>Имя</b>: {$name}</p>
    <p><b>Номер телефона:</b> {$phone}</p>
    <p><br></p>
    <p><b>Требуемые услуги/работы:</b>: {$services}</p>
    <p><b>Объект:</b>: {$object}</p>
    <p><br></p>
    <p><b>Сроки предоставления КП:</b>: {$timing}</p>
    <p><b>Требуемые сроки проведения работ:</b>: {$time}</p>
    <p><br></p>
    <p><b>Бюджет:</b> {$budget}</p>
    <p><br></p>
    <p><b>Дополнительная информация:</b> {$additional}</p>
    <p><br></p>
    <p><b>Контактные данные:</b> {$contacts}</p>