Announcement

Collapse
No announcement yet.

Product Review Code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Product Review Code

    Customer just alerted us to code displaying in the product review box.
    [reviewCreatedMsg]

    What generally causes code to display? Would it be missing a <>?

  • #2
    The START and END lines activate the code within the brackets. If the START and END are not there, you will see the tag as is
    Code:
    	<!--START: newReviewThankyou-->
    			<table width="600px" cellpadding="2" cellspacing="0" border="0">
    				<tr>
    					<td align="left"><table width="100%" cellspacing="5" cellpadding="0" border="0" id="Table5">
    							<tr align="center">
    								<td colspan="4" class="item" align="left">[reviewCreatedMsg]</td>
    							</tr>
    						</table></td>
    				</tr>
    				<tr>
    					<td align="right"><input type="button" value='Click here to continue' class="btn" onClick="closeWindow();" onMouseOver="this.className='btn_over'" onMouseOut="this.className='btn'"></td>
    				</tr>
    			</table>
    			<!--END: newReviewThankyou-->

    Comment


    • #3
      This is the default one that was in my template

      <!--START: newReviewThankyou-->
      <table width="100%" cellpadding="2" cellspacing="0" border="0">
      <tr>
      <td align="left"><table width="100%" cellspacing="5" cellpadding="0" border="0" id="Table5">
      <tr align="center">
      <td colspan="4" class="item" align="left">[reviewCreatedMsg]</td>
      </tr>
      </table></td>
      </tr>
      <tr>
      <td align="right"><input type="button" value='Click here to continue' class="btn" onClick="closeWindow();" onMouseOver="this.className='btn_over'" onMouseOut="this.className='btn'"></td>
      </tr>
      </table>
      <!--END: newReviewThankyou-->

      Do you see anything wrong?

      Comment


      • #4
        Here's the entire template. I added a comment a long time ago about their emails not being shown on the product review.

        <body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" class="data">
        <script>
        function closeWindow()
        {
        try
        {
        window.parent.hs.close();
        }
        catch(err)
        {
        window.close();
        }
        }
        </script>
        <table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" class="data">
        <tr>
        <td><table width="100%" cellpadding="0" cellspacing="0">
        <tr>
        <td class="page_headers" colspan="2">[reviews_add]</td>
        </tr>
        <tr>
        <td valign="top" class="item"><strong>[name]</strong></td>
        </tr>
        <tr>
        <td colspan="2" class="borders"><img src="assets/templates/common/images/spacer.gif" border="0" alt="" height="1"></td>
        </tr>
        </table>
        <br>
        <!--START: newReviewForm-->
        <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <form name="creview" method="post" action="review.asp?action=create&catalogid=[catalogid]">
        <tr>
        <td colspan="4"><table width="100%" cellpadding="3" cellspacing="2">
        <tr>
        <td width="70" class="price-info">Name: </td>
        <td class="price-info" width="150"><!--START: nameTxt-->
        <input type="text" value="[custName]" name="user_name" maxlength="50" class="txtBoxStyle" size="20">
        <img src="assets/templates/common/images/error2.gif" width="12" height="12">
        <!--END: nameTxt-->
        <!--START: nameHdn-->
        [custName]
        <br>
        <!--END: nameHdn-->
        Initials Only</td>
        <td class="price-info" width="30">Email: </td>
        <td class="price-info"><!--START: emailTxt-->
        <input type="text" value="[custEmail]" name="user_email" maxlength="50" class="txtBoxStyle" size="20">
        <img src="assets/templates/common/images/error2.gif" width="12" height="12">
        <!--END: emailTxt-->
        <!--START: emailHdn-->
        [custEmail]
        <!--END: emailHdn-->* <br>
        Not shown on product review</td>
        </tr>
        <tr>
        <td class="price-info">Location: <br>
        (State)</td>
        <td class="price-info" colspan="3"><input type="text" name="user_city" maxlength="50" class="txtBoxStyle" size="60">
        <img src="assets/templates/common/images/error2.gif" width="12" height="12"></td>
        </tr>
        <tr>
        <td class="price-info">Product:</td>
        <td class="price-info" colspan="3" align="center"><p align="left">
        <input type="text" size="60" name="short_review" maxlength="100" id="Text4" class="txtBoxStyle">
        <img src="assets/templates/common/images/error2.gif" width="12" height="12"></P></td>
        <tr>
        <tr>
        <td class="price-info">Review:</td>
        <td colspan="3"><textarea cols=38 rows="10" name=long_review></textarea>
        <img src="assets/templates/common/images/error2.gif" width="12" height="12"></td>
        </tr>
        <tr>
        <td class="price-info">Rating:</td>
        <td class="price-info" colspan="3" align="left"><input type="radio" name="rating" value="1">
        <img src="assets/templates/common/images/star1.gif">
        <input type="radio" name="rating" value="2" id="Radio1">
        <img src="assets/templates/common/images/star2.gif">
        <input type="radio" name="rating" value="3" id="Radio2">
        <img src="assets/templates/common/images/star3.gif">
        <input type="radio" name="rating" value="4">
        <img src="assets/templates/common/images/star4.gif">
        <input type="radio" name="rating" value="5" id="Radio4" checked>
        <img src="assets/templates/common/images/star5.gif" > </td>
        </tr>
        <!--START: captcha-->
        <tr>
        <td class="price-info">Verification:</td>
        <td class="price-info"><img src="admin/image_pw.asp" border="0" width="148"> <br>
        Type the word above...<br>
        <input type="text" name="ramdomWord" id="ramdomWord" autocomplete="off" value="" size="25" maxlength="30" class="txtBoxStyle">
        <img src="assets/templates/common/images/error2.gif" width="12" height="12"> </td>
        </tr>
        <!--END: captcha-->
        </table>
        <br>
        </td>
        </tr>
        <tr>
        <td colspan="2" class="borders"><img src="assets/templates/common/images/spacer.gif" border="0" alt="" height="1"></td>
        </tr>
        <tr>
        <td height="50"><span class="error"><img src="assets/templates/common/images/error2.gif"> = Required</span></td>
        <td align="right"><input type="submit" value="Add Review" class="btn" onMouseOver="this.className='btn_over'" onMouseOut="this.className='btn'" ></td>
        </tr>
        </form>
        </table>
        <script language="javascript" type="text/javascript">
        //You should create the validator only after the definition of the HTML form
        var frmvalidator = new Validator("creview");

        bolCheckSubmitted_validation = false;//Global variable defined in utilities.js
        frmvalidator.setAddnlValidationFunction("submitFor m");

        <!--START: validateNameEmail-->
        frmvalidator.addValidation("user_name","req","Plea se enter your First and Last Name.");
        frmvalidator.addValidation("user_name","maxlen=40" ,"Max length for Name is 40.");
        frmvalidator.addValidation("user_email","maxlen=50 ","Max length for Email is 50.");
        frmvalidator.addValidation("user_email","email");
        frmvalidator.addValidation("user_email","req","Ple ase enter your E-mail.");
        <!--END: validateNameEmail-->

        frmvalidator.addValidation("user_city","req","Plea se enter your City.");
        frmvalidator.addValidation("user_city","maxlen=50" ,"Max length for City is 50.");
        frmvalidator.addValidation("long_review","maxlen=2 500","Max length for Review is 2500.");
        frmvalidator.addValidation("long_review","req","Pl ease enter your review.");
        frmvalidator.addValidation("short_review","maxlen= 100");
        frmvalidator.addValidation("short_review","req","P lease enter your review.");
        <!--START: captchascript-->
        frmvalidator.addValidation("ramdomWord","maxlen=20 ");
        frmvalidator.addValidation("ramdomWord","req","Ple ase enter the verification word.");
        <!--END: captchascript-->
        </script>
        <!--END: newReviewForm-->
        <!--START: newReviewThankyou-->
        <table width="100%" cellpadding="2" cellspacing="0" border="0">
        <tr>
        <td align="left"><table width="100%" cellspacing="5" cellpadding="0" border="0" id="Table5">
        <tr align="center">
        <td colspan="4" class="item" align="left">[reviewCreatedMsg]</td>
        </tr>
        </table></td>
        </tr>
        <tr>
        <td align="right"><input type="button" value='Click here to continue' class="btn" onClick="closeWindow();" onMouseOver="this.className='btn_over'" onMouseOut="this.className='btn'"></td>
        </tr>
        </table>
        <!--END: newReviewThankyou-->
        <!--START: errorMsg-->
        <table width="100%" border="0" cellspacing="3" cellpadding="0" id="Table3">
        <tr>
        <td> </td>
        </tr>
        <tr>
        <td align="left"><table width="100%" cellspacing="5" cellpadding="0" border="0" >
        <tr align="center">
        <td colspan="4" class="item" align="left">[errorMsg]</td>
        </tr>
        </table></td>
        </tr>
        <tr>
        <td colspan="2" class="borders"><img src="assets/templates/common/images/spacer.gif" border="0" alt="" height="1"></td>
        </tr>
        <tr>
        <td align="right"><input type="button" value='Click here to continue' class="btn" onClick="history.back(1);" onMouseOver="this.className='btn_over'" onMouseOut="this.className='btn'"></td>
        </tr>
        </table>
        <!--END: errorMsg-->
        </td>
        </tr>
        </table>
        </body>
        </html>

        Comment

        Working...
        X