pavell86 Posted May 23, 2015 Share Posted May 23, 2015 i want add field input to my address, but after click save show error Call to undefined method Validate: in classes/ObjectModel.php on line 1029 I added to the template <label for="dph">{l s='custom'}</label> <input type="text" class="text" name="custom" value="{if isset($smarty.post.custom)}{$smarty.post.custom}{else}{if isset($address->custom)}{$address->custom|escape:'html'}{/if}{/if}" /> </p> I have a column in the database custom In file address.php 'custom' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 64), Prestashop 1.5. Can you help me with problem, please Link to comment Share on other sites More sharing options...
PascalVG Posted May 26, 2015 Share Posted May 26, 2015 Just a double check, but you haven't 'custom' => array('type' => self::TYPE_STRING, 'Validate' => 'isGenericName', 'size' => 64), (With capital 'V' ) in your address.php definition of custom, or? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now