Legosp Forum

Shop-Script "Legosp" => Разработка => Тема начата: maa1988 от Июля 28, 2015, 07:45:56 pm

Название: После оформления заказа перестало перекидывать на окно с информацией
Отправлено: maa1988 от Июля 28, 2015, 07:45:56 pm
После того. как оформляется заказ вводятся все данные.... Нажимаю отправить - заказ на почты отправляется, а вот на страницу где можно просмотреть заказ и распечатать почему то не перекидывает.

order_custinfo.tpl.html

{* customer information form *}

    <div class="top">
      <h1>{$smarty.const.STRING_CONTACT_INFORMATION}</h1>
    </div>
    <div class="middle">
      <div style="width: 100%; margin-bottom: 30px;">
<form action="./{if $smarty.const.CONF_CHPU}cart/order_placed/{else}index.php?order_placement_result=1{/if}" name="custinfo_form" id="custinfo_form" method="post">
<table width="650px" style="padding: 5px;">
  <tr style="vertical-align: top">
    <td colspan="3" align="left">{$smarty.const.STRING_REQUIRED}<br /><br /></td>
  </tr>
  <tr style="vertical-align: top">
    <td width="100px" align="left"><font style="color: #F00">*</font> {$smarty.const.CUSTOMER_FIRST_NAME}&nbsp;&nbsp;&nbsp;</td>
    <td width="250px" align="left"><input style="width: 250px" class="required lettersonly" type="text" name="first_name" id="first_name" value="{if $smarty.session.userinf.cust_firstname}{$smarty.session.userinf.cust_firstname}{else}{$smarty.post.first_name}{/if}" /></td>
  </tr>
  <tr style="vertical-align: top">
    <td width="100px" align="left"><font style="color: #F00">*</font> {$smarty.const.CUSTOMER_LAST_NAME}&nbsp;&nbsp;&nbsp;</td>
    <td width="250px" align="left"><input style="width: 250px" class="required lettersonly" type="text" name="last_name" id="last_name" value="{if $smarty.session.userinf.cust_lastname}{$smarty.session.userinf.cust_lastname}{else}{$smarty.post.last_name}{/if}" /></td>
  </tr>
  <tr style="vertical-align: top">
    <td width="100px" align="left"><font style="color: #F00">*</font> {$smarty.const.CUSTOMER_EMAIL}&nbsp;&nbsp;&nbsp;</td>
    <td width="250px" align="left"><input style="width: 250px" class="required email" type="text" name="email" id="email" value="{if $smarty.session.userinf.cust_email}{$smarty.session.userinf.cust_email}{else}{$reg_userinfo[2]}{/if}" /></td>
  </tr>
  <tr style="vertical-align: top">
    <td width="100px" align="left"><font style="color: #F00">*</font> {$smarty.const.CUSTOMER_PHONE_NUMBER}&nbsp;&nbsp;&nbsp;</td>
    <td width="250px" align="left"><input style="width: 250px"  class="required" type="text" name="phone" id="phone" value="{if $smarty.session.userinf.cust_phone}{$smarty.session.userinf.cust_phone}{else}{$smarty.post.phone}{/if}" /></td>
  </tr>
    <tr style="vertical-align: top">
    <td width="100px" align="left"><font style="color: #F00">*</font> {$smarty.const.CUSTOMER_CITY}</td>
    <td width="250px" align="left"><input style="width: 250px" class="required lettersonly" type="text" name="city" value="{if $smarty.session.userinf.cust_city}{$smarty.session.userinf.cust_city}{else}{$reg_userinfo[4]}{/if}" /></td>
  </tr>
 
 
  <tr style="vertical-align: top">
    <td colspan="2" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<b>{$smarty.const.CUSTOMER_ADDRESS}</b></td>
    {*<td width="250px" align="left"><textarea name="address" rows="4" cols="30" class="required" style="width: 250px">{if $smarty.session.userinf.cust_address}{$smarty.session.userinf.cust_address}{else}{$reg_userinfo[5]}{/if}</textarea></td>*}
  </tr>
 
  <tr><td colspan="2"></td></tr>
  <tr style="vertical-align: top;">
    <td width="100px" align="left"><font style="color: #F00">*</font> Улица</td>
    <td width="250px" align="left"><input style="width: 250px" class="required" type="text" name="street" value="{if $smarty.session.userinf.street}{$smarty.session.userinf.street}{else}{$reg_userinfo['street']}{/if}" /></td>
  </tr>
  <tr style="vertical-align: top">
    <td width="100px" align="left"><font style="color: #F00">*</font> Дом</td>
    <td width="250px" align="left"><input style="width: 250px" class="required" type="text" name="house" value="{if $smarty.session.userinf.house}{$smarty.session.userinf.house}{else}{$reg_userinfo['house']}{/if}" /></td>
  </tr>
  <tr style="vertical-align: top">
    <td width="100px" align="left">&nbsp;&nbsp;Корпус</td>
    <td width="250px" align="left"><input style="width: 250px" type="text" name="housing" value="{if $smarty.session.userinf.housing}{$smarty.session.userinf.housing}{else}{$reg_userinfo['housing']}{/if}" /></td>
  </tr>
  <tr style="vertical-align: top">
    <td width="100px" align="left"><font style="color: #F00">*</font> Подъезд</td>
    <td width="250px" align="left"><input style="width: 250px" class="required" type="text" name="porch" value="{if $smarty.session.userinf.porch}{$smarty.session.userinf.porch}{else}{$reg_userinfo['porch']}{/if}" /></td>
  </tr>
  <tr style="vertical-align: top">
    <td width="100px" align="left"><font style="color: #F00">*</font> Этаж</td>
    <td width="250px" align="left"><input style="width: 250px" class="required" type="text" name="floor" value="{if $smarty.session.userinf.floor}{$smarty.session.userinf.floor}{else}{$reg_userinfo['floor']}{/if}" /></td>
  </tr>
  <tr style="vertical-align: top;border-bottom:1px solid grey;">
    <td width="100px" align="left"><font style="color: #F00">*</font> Квартира</td>
    <td width="250px" align="left"><input style="width: 250px" class="required" type="text" name="apartment" value="{if $smarty.session.userinf.apartment}{$smarty.session.userinf.apartment}{else}{$reg_userinfo['apartment']}{/if}" /></td>
  </tr>
  <tr><td colspan="2"><br /></td></tr>
 
  <tr style="vertical-align: top">
    <td width="100px" align="left">&nbsp;&nbsp;{$smarty.const.CUSTOMER_COMMENT}</td>
    <td width="250px" align="left"><textarea name="comment" rows="4" cols="30" style="width: 250px"></textarea></td>
  </tr>
          {*<tr>
      <td align="left"><font style="color: #F00">*</font> {$smarty.const.STRING_SEND_CAPCHA}</td>
      <td align="left" width="250px"><input style="width:250px" type="text" name="captcha" /></td>
      <td align="left"><img id="cap" style="margin-left: 15px;" src="./core/core_captcha.php" alt="" /><br><a style="margin-left: 39px;"  border='0' onclick='go_cap()' alt='' />Обновить</a></td>
  </tr> *}
</table>
  <div class="buttons">
    <table>
      <tr>
<td align="center">
  <input type="hidden" name="complete_order" value="1" />
  <a onclick="{literal}javascript: if (validate_custinfo(this)==true) {$('#custinfo_form').submit();}{/literal}" class="button"><img src="webimg/zakaz.png"></a>
</td>
      </tr>
    </table>
  </div>
</form>
      </div>
    </div>
   


Где что делал не помню... честно. Откатывал систему - бесполезно
Название: Re: После оформления заказа перестало перекидывать на окно с информацией
Отправлено: maa1988 от Июля 30, 2015, 07:56:41 am
Все разобрался. Косяк был в .htaccess