View Single Post
  #49  
Old 09-02-2018, 04:04 PM
 
A_R A_R is offline
 

Member
  
Join Date: Aug 2018
Posts: 12
 

Default Re: reCAPTCHA for X-Cart Classic

There is an error in the installation instruction:
IF YOU USE THE *ADVANCED* CUSTOMER REVIEWS MODULE...

17) In skin/common_files/modules/Advanced_Customer_Reviews/customer_add_review.tpl

BEFORE...

{include file="customer/buttons/submit.tpl" type="input" assign="submit_button"}

INSERT...

{* reCAPTCHA - www.xcartmods.co.uk *}
{if $active_modules.reCAPTCHA && $config.reCAPTCHA.reCAPTCHA_enabled eq "Y" && $config.reCAPTCHA.reCAPTCHA_site_key && $config.reCAPTCHA.reCAPTCHA_secret_key && $config.reCAPTCHA.reCAPTCHA_enabled_review eq "Y"
<tr>
<td colspan="2">&nbsp;</td>
<td>{include file="modules/reCAPTCHA/reCAPTCHA.tpl" align="left"}</td>
</tr>
{/if}
{* /reCAPTCHA *}


There is a } missing behind the eq "Yes" and the <tr> Tag!



If you run the Template sytntax this produce an error in the customer_add_review_t.tpl template
pointing at line 85 "<td colspan="2">&nbsp;</td>" - Unexpected "<"



Here is the corrected version:


{* reCAPTCHA - www.xcartmods.co.uk *}
{if $active_modules.reCAPTCHA && $config.reCAPTCHA.reCAPTCHA_enabled eq "Y" && $config.reCAPTCHA.reCAPTCHA_site_key && $config.reCAPTCHA.reCAPTCHA_secret_key && $config.reCAPTCHA.reCAPTCHA_enabled_review eq "Y"}
<tr>
<td colspan="2">&nbsp;</td>
<td>{include file="modules/reCAPTCHA/reCAPTCHA.tpl" align="left"}</td>
</tr>
{/if}
{* /reCAPTCHA *}


This will produce the right customer_add_review_t.tpl file version.


Attached zip file with 2 screenshots

__________________
4.7.9 Gold Plus
PayPal DPM for X-cart

Andreas
www.aaawatchclub.com
Reply With Quote