Jump to content

Obtain customer data logged in the main file of a new module.


Recommended Posts

Hello everyone, I hope to explain well what I want. I have created a new module that paints its html content on a hook through ajax, the customer has asked me if the store user are not logged in do not show prices or quantities available. It is true that the customer data is in the$ customer global variable and that this would be very easy to do with if.

if ($customer ['is_logged'] == 1) {

}

But in my case the html that is generated in the template from the main module file and there I don't have the $customer variable. The question is... Is there a function to obtain data from the client in an .php file?

Thank you very much in advance and excuse my English

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...