SonnyBoyII Posted August 25, 2011 Share Posted August 25, 2011 Hi, I have been trying to store in additional column called by me 'upadated' in ps_customer table, number 1 if customer changed anything from his control panel. By default is set to 0 so if someone create an account updated field = 0. It looks simple I found the right place in the code ( I hope ): identityControler.php and added around the line: 83 this: customer->updated=1; (I have done modyfication to class/customer.php, declared field etc) Here is my problem... It is very strange but my modification works from time to time, I have no idea why sometimes nothing happens and another time updated field is set to 1. Maybe there are some cashing issues/trick to know or javasript files need to be edited as well? I have done similar thing, even more complicated for addresses table and it works perfectly... regards, SonnyBoy Link to comment Share on other sites More sharing options...
SonnyBoyII Posted August 26, 2011 Author Share Posted August 26, 2011 Have you got any idea guys?? The thing is the same modification works perfectly in AddressController.php .If customer changed their address additional column is flagged from 0 to 1. IdentityController.php looks very similar to me I have been trying to do the same but it work from time to time. Here is my modifications done in IdentityController.php if ($customer->update()) { /* my code */ $customer->updated=1; /* my code ends */ self::$cookie->customer_lastname = $customer->lastname; self::$cookie->customer_firstname = $customer->firstname; self::$smarty->assign('confirmation', 1); } $customer->updated=1; that works randomly, why?? Link to comment Share on other sites More sharing options...
SonnyBoyII Posted August 27, 2011 Author Share Posted August 27, 2011 is there any Rocky in the town? .. ;( 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