diegovic Posted September 20, 2010 Share Posted September 20, 2010 Hi,I have a problem: I like to limit the attachment (which in my case are really sort of demos of the final product) only to registered users.The goal is easy to understand: we give you the demo for free, but at least we can track who you are and eventually send you marketing emails.Do you know if it's possible to implement this by any mean?Thanks in advanceDiego Link to comment Share on other sites More sharing options...
tomerg3 Posted September 20, 2010 Share Posted September 20, 2010 Showing the download tab only to registered users is quite easy (change to 1 line), but adding tracking to see who downloaded what requires making a lot more changes Link to comment Share on other sites More sharing options...
diegovic Posted September 20, 2010 Author Share Posted September 20, 2010 Thanks - I think I can leave with the fact of not knowing what they downloaded or use mysql to retrieve information (assuming they are stored somewhere).Can you be so kind to point me in the right direction to know how to do this one line change? (I'm quite familiar with both PHP and MySQL)ThanksDiego Link to comment Share on other sites More sharing options...
tomerg3 Posted September 20, 2010 Share Posted September 20, 2010 Prestashop sets a Smarty variable when a customer is logged in, all you need to do is add it to the if statement for the download tab.Edit product.tpl and change (in 2 locations){if $attachments}To {if $logged && $attachments} 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