IGNITER Posted March 24, 2010 Share Posted March 24, 2010 Hi!I have the annoying "Hack attempt" message after i removed city, postcode, country, and made phones required fields. What i did is, edit the /classess/Address.php, /themes/prestashop/address.tpl, /themes/prestashop/authentication.tpl.In Address.php i changed: protected $fieldsRequired = array('id_country', 'alias', 'lastname', 'firstname', 'address1', 'postcode', 'city'); to: protected $fieldsRequired = array('alias', 'lastname', 'firstname', 'address1', 'phone', 'phone_mobile'); In authentication.tpl and address.tpl: {l s='Home phone'} <input type="text" class="text" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{/if}" /> to: {l s='Home phone'} <input type="text" class="text" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{/if}" /> * The same for the mobile phone and removed code for city, postcode and country in authentication.tpl and address.tpl.Also i deleted the check box "receive special offers from our partners" from authentication.tpl and identity.tpl <input type=“checkbox“name=“optin” id=“optin” value=“1” {if isset($smarty.post.optin) AND $smarty.post.optin == 1} checked=“checked”{/if} /> {l s=‘Receive special offers from our partners’} Can anyone help me?Thank you in advance. Link to comment Share on other sites More sharing options...
kesh69 Posted April 24, 2010 Share Posted April 24, 2010 I have same problem, when I made mobile phone mandatory, no users cannnot access identity.php because it shows"hack attempt (Customer -> phone_mobile is empty)"I changed address.php/Customer.php with adding 'phone_mobile' as this was a solution shown in this forum, but after that I cannot find a way how to do that field not empty..Help somebody, because I see few topics has already been in few months without any solution.. Link to comment Share on other sites More sharing options...
FrenchMaster Posted May 24, 2010 Share Posted May 24, 2010 I have also EXACTLY the same problem ! please help ! Link to comment Share on other sites More sharing options...
Maria_M Posted August 16, 2010 Share Posted August 16, 2010 I have the problem also Link to comment Share on other sites More sharing options...
jaryn Posted August 24, 2010 Share Posted August 24, 2010 It happens when edited record has empty "phone" field in "ps_address" table.Suggest execute following query (or similar): UPDATE ps_address SET phone = " " WHERE phone = ""; Hope it helps.j.-----GrowGarden GrowShop Link to comment Share on other sites More sharing options...
MrBaseball34 Posted August 24, 2010 Share Posted August 24, 2010 Maybe also giving Phone column default value, too. Link to comment Share on other sites More sharing options...
Recommended Posts