Just a quick post as I wanted to remind myself to write more on this. Presently working on some ideas for a client, one of his needs is to have the “reviews” adding functionality in the product page.
As we know that to place a review the customer MUST be logged in, I decided to test if the customer is logged in and then present the information like this;
If NOT logged in;
The form is not active, and I lowered the opacity, as well as put a “you must login” message underneath.
If they ARE logged in;
The form becomes active, the opacity is removed, and the button appears instead of the message!
A nice little mod, that did not take too long to code up, as most of the code already exists in other pages, so just a matter of copy/paste. I also made a little graphic to link to already written reviews – this does not show if there is no reviews on the product being looked at.