Приветствую. Необходимо доработать форму заказа для интернет-магазина, а именно - добавить выпадающее меню или выбор галочкой формы оплаты - (при получении или банковской картой). В случае выбора - при получении - заказ передается на сайт, в случае выбора оплаты картой - заказ передается на сайт, а пользователь перенаправляется на страницу оплаты.
Как выглядит форма сейчас можно посмотреть на скриншоте.
Код формы -
{if !$notpermit}
<div class="title"><strong>{l s='Simple order in one click' mod='orderinoneclick'}</strong></div>
<div class="description">{l s='Enter your name and phone or email. Our experts will call you, and specify the details of the order!' mod='orderinoneclick'}</div>
<strong><center>{l s='I agree' mod='orderinoneclick'}<strong></center>
<center><td class="price" id="total_price">{displayPrice price=$total_price_without_tax}</center></td>
{*
* <center><a href="https://secure.wayforpay.com/button/bb28eb6d34cbc" target="_blank">
* <input type="button" value="{l s='Operation not permitted! Contact to administrator!' mod='orderinoneclick'}"
* </center></td>
*
* <p><div class="description">{l s='E-mail is invalid' mod='orderinoneclick'}</div></a></p>
*}
<form action="" method="post" id="form_id">
<div class="alarm_pore">
{if $errname}{l s='Name is invalid' mod='orderinoneclick'}{/if}
{if $errnameempty}{l s='You must specify the your name.' mod='orderinoneclick'}{/if}
</div>
<div class="divtextinput {if $errname || $errnameempty}alarm{/if}"><label>{l s='Your name:' mod='orderinoneclick'} <font color="darkred">*</font></label><input name="name" type="text" class="textinput" {if $name}value="{$name}"{/if}></div>
<div class="alarm_pore">
{if $errphoneoremail}{l s='You must specify a phone number or email:' mod='orderinoneclick'}{/if}
{if $erremail}{l s='E-mail is invalid. ' mod='orderinoneclick'}{/if}
{if $errphone}{l s='Phone number is invalid.' mod='orderinoneclick'}{/if}
</div>
<div class="divtextinput {if $errphone}alarm{/if}"><label>{l s='Phone:' mod='orderinoneclick'} </label><input name="phone" type="text" class="textinput ym-record-keys" {if $phone}value="{$phone}"{/if}></div>
<div class="divtextinput {if $errphone}alarm{/if}"><label>{l s='Adress:' mod='orderinoneclick'} </label><input name="adresdostavki" type="text" class="textinput" {if $adresdostavki}value="{$adresdostavki}"{/if}></div>
<div class="divtextinput {if $erremail}alarm{/if}"><label>{l s='E-mail:' mod='orderinoneclick'} </label><input name="email" type="text" class="textinput" {if $email}value="{$email}"{/if}></div>
{if $href_agree}
<div class="alarm_pore">{if $erragree}{l s='You must agree license.' mod='orderinoneclick'}{/if}</div>
<table>
<tr>
<td>
<input type="checkbox" name="agree" value="1" {$agree|escape:'htmlall'}>
</td>
<td>
{l s='I agree' mod='orderinoneclick'} <a href="{$href_agree|escape:'htmlall'}" target="_blank">{l s='term and condition use' mod='orderinoneclick'}.</a>
</td>
</tr>
</table>
{/if}
<div class="buttons">
<span id="ooc_cancel">{l s='Cancel' mod='orderinoneclick'}</span>
<input id="ooc" type="button" value="{l s='Confirm' mod='orderinoneclick'}" onclick="OOCFormRequest('ooc_window', 'form_id', '/modules/orderinoneclick/orderinoneclick_sendorder.php')">
</div>
</form>
{else}
<div class="notpermit">{l s='Operation not permitted! Contact to administrator!' mod='orderinoneclick'}</div>
<span id="ooc_cancel" class="ooc_notpermit_cancel">{l s='Cancel' mod='orderinoneclick'}</span>
{/if}