valancee Posted July 22, 2014 Share Posted July 22, 2014 I'm going to try explain that I want to make. After to send a encoded link of product from a similar module to "Send to a friend", I want register into DB who visit the website using one of links sent. The question is: Where is the better location for the script that has to do this? is there a location for this processes kind, into design structure of prestashop? Thanks in advance. Link to comment Share on other sites More sharing options...
bellini13 Posted July 22, 2014 Share Posted July 22, 2014 This is a module called sendtoafriend. I think you would have to alter this module to record the action into a database table Link to comment Share on other sites More sharing options...
valancee Posted July 23, 2014 Author Share Posted July 23, 2014 Thank you bellini13 for your reply. Yes, one process will be to record the links sent into sendtoafriend module, but the other part I need, is to record into a database table when the link receiver return to my website. At this moment, I also need to save it. I'm seeing to throw a asynchronous thread into the hookHeader of sendtoafriend module. Do you think it can be a good idea? Link to comment Share on other sites More sharing options...
bellini13 Posted July 23, 2014 Share Posted July 23, 2014 header or footer hooks would probably work ok. the alternative is to provide a single URL to all users. www.mydomain.com/redirect.php this redirect.php file would be responsible for recording the user visit, and then redirecting to the correct landing page. Link to comment Share on other sites More sharing options...
valancee Posted July 24, 2014 Author Share Posted July 24, 2014 Ok. I've made some test on hook Header and work correctly. Finally, I won't use the asynchronous thread, I said. It need a lot of PHP configuration. Thank you very much, bellini13. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now