我正在prestashop开发这个项目。我是prestashop的新手。我的代码如下:
<form action="{$link->getModuleLink('bankwire', 'validation', [], true)|escape:'html'}" method="post">
<p>
<img src="{$this_path_bw}bankwire.jpg" alt="{l s='Bank wire' mod='bankwire'}" width="86" height="49" style="float:left; margin: 0px 10px 5px 0px;" />
{l s='You have chosen to pay by bank wire.' mod='bankwire'}
<br/><br />
{l s='Here is a short summary of your order:' mod='bankwire'}
</p>
<p style="margin-top:20px;">
- {l s='The total amount of your order is' mod='bankwire'}
<span id="amount" class="price">{displayPrice price=$total}</span>
{if $use_taxes == 1}
{l s='(tax incl.)' mod='bankwire'}
{/if}
</p>
<p>
-
{if $currencies|@count > 1}
{l s='We allow several currencies to be sent via bank wire.' mod='bankwire'}
<br /><br />
{l s='Choose one of the following:' mod='bankwire'}
<select id="currency_payement" name="currency_payement" onchange="setCurrency($('#currency_payement').val());">
{foreach from=$currencies item=currency}
<option value="{$currency.id_currency}" {if $currency.id_currency == $cust_currency}selected="selected"{/if}>{$currency.name}</option>
{/foreach}
</select>
{else}
{l s='We allow the following currency to be sent via bank wire:' mod='bankwire'} <b>{$currencies.0.name}</b>
<input type="hidden" name="currency_payement" value="{$currencies.0.id_currency}" />
{/if}
</p>
<p>
{l s='Bank wire account information will be displayed on the next page.' mod='bankwire'}
<br /><br />
<b>{l s='Please confirm your order by clicking "I confirm my order".' mod='bankwire'}</b>
</p>
<p class="cart_navigation" id="cart_navigation">
<input type="submit" value="{l s='I confirm my order' mod='bankwire'}" class="exclusive_large" />
<a href="{$link->getPageLink('order', true, NULL, "step=3")|escape:'html'}" class="button_large">{l s='Other payment methods' mod='bankwire'}</a>
</p>
</form>
我想知道点击提交按钮在控制器中调用什么功能。任何想法知道在控制器中调用什么功能。
答案 0 :(得分:0)
尝试理解代码。在表单的开头有调用获取URL并指示该地址指向&#34; bankwire&#34;模块,特别是&#34;验证&#34;。
检查表单上的URL或调试器打开浏览器以查看已发送的URL。
https://github.com/PrestaShop/bankwire/blob/master/controllers/front/validation.php