Jump to content

[SOLVED] Passing data between two modules...


Recommended Posts

EDIT: Oh! Come on... i am stupid! I realised just while writing this post: the solution is Top order position of the module. I am sorry for this post. :)

____________________

 

Hello

 

I am writing a small module for left column.

 

I want to save some data into context->customer when this module is charged, and for doing this I have override the customer class to add a method to do it. I call this method in my module.

 

It is working fine. But this is the point, I need those data appear in blockuserinfo. When I copy the TPL file to my_theme/modules/blockuserinfo folder and y add the condition to check those data it is like the datas is not yet saved into context->customer until my module appears in left.

 

But my module charges those data correctly. So i understand that the execution order make blockuserinfo not able to get those data until my custom module executes.

 

My question is: How could I have my module saving those data before blockuserinfo need it?

 

I apologize for my english writing skill.

 

I thank you in advance for your time.

Edited by Lokkytron (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...