1
General Support / Easiest way to know what is the customer_id from "outside" the AbanteCart env
« on: May 06, 2021, 12:30:11 AM »
Hi again,
I wish to include, outside of the AbanteCart architecture, a php file which can provide information based on the customer_id, if one is logged in. I have found online that many extensions use the following call:
However, this seems to be for certain components which inherit some class from the core, I imagine. What I would like to know is the simplest way to simply be able to retrieve that information without going through a formal "extension" or "plugin".
In other words: I would like to add a file test.php at the root of the domain which can retrieve the customer_id.
Is this possible or is a formal development of an extension the only way? Thanks !
Tepp
I wish to include, outside of the AbanteCart architecture, a php file which can provide information based on the customer_id, if one is logged in. I have found online that many extensions use the following call:
Quote
$this->session->data['customer_id']
However, this seems to be for certain components which inherit some class from the core, I imagine. What I would like to know is the simplest way to simply be able to retrieve that information without going through a formal "extension" or "plugin".
In other words: I would like to add a file test.php at the root of the domain which can retrieve the customer_id.
Is this possible or is a formal development of an extension the only way? Thanks !
Tepp