Hi,
I would like to use some functionality of the core class Customer.php (for example the 'customerExists' function).
Now when i include the Customer.php inside my class it gets found correctly but the following error gets thrown:
Class 'ObjectModel' not found in C:\xampp\htdocs\prestashop\classes\Customer.php on line 29
Yet any suggestions how to solve this? (ANYTHING could help after hours of reading & trying)
I already found a post to the error:
http://www.prestasho...__fromsearch__1
According to the post i tried not to include the Customer.php inside my class (located inside the modules folder) but then the Customer.php will not be found. I as well tried to place my class inside the /override/classes folder made it extend from ObjectModel which has thrown basicially the same error.
Any suggestions how i can use PrestaShop core classes from within own PHP Scripts/ Classes (located in the modules folder)?
Thank you took the time to read this!
Regards
Jan
P.s. Background Information: I implemented a third party authorization service (Switch AAI) to authenticate students from Switzerland, which are not yet known to the PrestaShop DB. After successfull authentication id like to use PrestaShop's existing code located in the core classes to add this user to the database (register it) and load it to the context so it's logged in. Thatfore i need the Customer.php class with its functions add(), cleanGroups(), addGroups(..), updateContext(...).