Quote:
Originally Posted by DavyMac
Within the review reminder email I'd like to include the customer's email address in the link to the add_review.php page so that as well as automatically adding their name to the author field it will add their email address to the email address field for them.
Does anybody see a way of doing this?
|
I solved this by using the mod, "Remember Me" by WCM
http://www.websitecm.com/x-cart-mods/remember-me.html
If a customer is logged in, then the fields on the write review page will automatically fill using this code (not sure if I added it or if it's stock):
file:
/common_files/modules/Advanced_Customer_Reviews/customer_add_review.tpl
Code:
<input type="text" name="review[author]" id="author" value="{if $login ne ''}{$fullname}{elseif $stored_review.author}{$stored_review.author|escape}{/if}" size="40" />
(see the {if $login ne ''}, etc....)
and:
Code:
<input type="text" class="input-email" name="review[email]" id="email" value="{if $login ne ''}{$login}{else $stored_review.email|escape}{/if}" size="40" />
If the customer is not logged in, I'm having a hard time justifying the expectation of pre-populating form fields. Does this work better for you?