karthikcs Posted December 24, 2015 Share Posted December 24, 2015 (edited) In the short description of the product I have a hyperlink (domain.com/some/thing?utm_source=shortdesc&utm_campaign=product&user_id=$customer_id) How do I add customer_id dynamically to the hyperlink if the customer is logged and leave blank or null if not logged in. Edited December 24, 2015 by karthikcs (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted December 25, 2015 Share Posted December 25, 2015 this will not be a simple change. the product description is saved in the database, and obviously is displayed for every customer the same way. so, you would have to override the product controller so that after the product information is loaded from the database, it would check if a customer object exists, and if so, it would include the user_id=$customer->id in that link, if the link exists. Link to comment Share on other sites More sharing options...
karthikcs Posted December 26, 2015 Author Share Posted December 26, 2015 Thank you Bellini Services for the help. Can someone guide me in doing this. 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