I have created a module in Magento which takes certain views from customers about any product and displays them as extra information under each product when its approved by the admin from back end.
Now I have got three fields Name, Email N Views. I would like to know how to keep a customer anonymous in this form if he wishes not to display his name when his views are approved and posted on the product page.
Thanks.
I found a solution by stumbling upon original core files. I added a checkbox in the form on the front end.
I added the
is_anonymouscolumn in the table and in the core controller file I added this to save the preference of each userAnd then to display it on front end I added an extra condition in list.phtml
And this lets me have a check box which if ticked displays the post as ‘Anonymous’ by user who has posted or else displays his name on the front end.
Hope this helps some one!