Reputation: 302
I am using PrestaShop™ 1.4.9.0 version.
Now I'm trying remove "Phone" field in checkout page on first step(Summery page). I am trying but no luck.
How to find it?
Upvotes: 0
Views: 5665
Reputation: 3106
Remove these lines from authentication.tpl
:
{elseif $field_name eq "phone"}
<p class="text">
<label for="phone">{l s='Phone'}</label>
<input type="text" class="text" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{/if}"> <sup style="color:red;">*</sup>
</p>
Copy the preProcess
method from controllers/AuthController.php
Create override/controllers/AuthController.php
:
<?php
class AuthController extends AuthControllerCore
{
}
Paste preProcess
Delete line parent::preProcess();
Remove these lines:
if (!Tools::getValue('phone') AND !Tools::getValue('phone_mobile'))
$this->errors[] = Tools::displayError('You must register at least one phone number');
Upvotes: 1