0
我知道這不是Prestashop論壇,但我不懷疑您有我正在尋找的解決方案。 我想更改Prestashop 1.6中註冊表單中兩個字段的順序。我也想隱藏一些不必要的,但我已經設法做到了。PrestaShop:更改註冊表單中的兩個字段的順序
我想移動領域是增值稅場(瑞典媽媽),我已經畫上附圖片:
因爲這一領域僅是可見的,當公司字段填入我不敢觸摸它。
,你可以在這個圖片上看到的現場 MOMS field should go before web address field
我認爲的代碼將被改變來這裏
<h3 class="page-subheading">{l s='Your company information'} </h3>
<p class="form-group">
<label for="">{l s='Company'}</label>
<input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company} {/if}" />
</p>
<p class="form-group">
<label for="website">{l s='Website'}</label>
<input type="text" class="form-control" id="website" name="website" value="{if isset($smarty.post.website)}{$smarty.post.website} {/if}" />
</p>
</div>
{/if}
{if isset($PS_REGISTRATION_PROCESS_TYPE) && $PS_REGISTRATION_PROCESS_TYPE}
<div class="account_creation">
<h3 class="page-subheading">{l s='Your address'}</h3>
{foreach from=$dlv_all_fields item=field_name}
{if $field_name eq "company"}
{if !$b2b_enable}
<p class="form-group">
<label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)} {$smarty.post.company}{/if}" />
</p>
{/if}
{elseif $field_name eq "vat_number"}
<div id="vat_number" style="display:none;">
<p class="form-group">
<label for="vat_number">{l s='VAT number'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="form-control" id="vat_number" name="vat_number" value="{if isset($smarty.post.vat_number)} {$smarty.post.vat_number}{/if}" />
</p>
</div>
{elseif $field_name eq "firstname"}
<p class="required form-group">
<input type="hidden" class="form-control" id="firstname" name="firstname" value="{if isset($smarty.post.firstname)} {$smarty.post.firstname}{/if}" />
</p>
{elseif $field_name eq "lastname"}
<p class="required form-group">
<input type="hidden" class="form-control" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)} {$smarty.post.lastname}{/if}" />
</p>
我的朋友,這是非常基本的干預,如果你申請更多,我相信你會找到解決方案。 – sarcom
我太老了,因爲我害怕。所以我仍然希望有人想回答一個基本的問題。每個人都不夠熟練。 –
Aaaaww ..對不起,我不想冒犯你。如果不緊急,我明天會幫你 – sarcom