I created a file in system/library/KTLibrary.php and added the references in:
- in system/startup.php file added the code: require_once(DIR_SYSTEM . 'library/KTLibrary.php');
- in catalog/controller/startup/startup.php and admin/controller/startup/startup.php added code: $this->registry->set('ktLibrary', new KTLibrary($this->registry));
I am getting null when I call $this->registry->get('ktLibrary'); in above cart.php
Please help.
Thank you.