Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Image Verification
 
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features
 
Thread Tools Search this Thread
  #1  
Old 03-25-2016, 11:29 AM
 
AKassing AKassing is offline
 

Member
  
Join Date: Jun 2013
Posts: 17
 

Smile Image Verification

Hi,

When the Image Verification module is turned on for "On Registration Page" it appears on the customer account registration and during checkout. However, we only want it to appear op the registration page and not during checkout.

We've found this tpl file (see code below) in the "One_Page_Checkout" module folder, but don't know how to modify this so the Image Verification won't appear.

Any help is appreciated.

Thanks in advance,

Alexandra

{*
8faeb12f1c73aa112ed3404e046e0d7ce670780d, v14 (xcart_4_5_5), 2012-12-28 18:48:11, opc_profile.tpl, random
vim: set ts=2 sw=2 sts=2 et:
*}

<div id="opc_profile">

<h2>{$lng.lbl_name_and_address}</h2>
<script type="text/javascript">
//<![CDATA[
// Used to update global $need_shipping var to work isCheckoutReady():ajax.checkout.js function properly
var need_shipping = {if $need_shipping}true{else}false{/if};
//]]>
</script>

{if ($userinfo ne '' and !$userinfo.is_incomplete) and not $reg_error and not $force_change_address}

{include file="modules/One_Page_Checkout/profile/profile_details_html.tpl"}

{else}

{if $reg_error}
<p class="error-message">{$reg_error.errdesc}</p>
{/if}

<form class="skip-auto-validation" action="cart.php?mode=checkout" method="post" name="registerform">
<fieldset id="personal_details" class="registerform">

<input type="hidden" name="usertype" value="C" />
<input type="hidden" name="anonymous" value="{$anonymous}" />

{include file='modules/One_Page_Checkout/profile/address_info.tpl' type='B' hide_header=true first=true}

{include file='modules/One_Page_Checkout/profile/account_info.tpl' hide_header=true}

{include file='modules/One_Page_Checkout/profile/address_info.tpl' type='S' hide_header=true first=true}

{include file='modules/One_Page_Checkout/profile/personal_info.tpl' first=true}

{include file='modules/One_Page_Checkout/profile/additional_info.tpl' section='A' first=true}

{*** uncomment if you need to enable newsletter signup
{include file='modules/One_Page_Checkout/profile/newslist_info.tpl' hide_header=true}
***}

{include file="customer/buttons/button.tpl" button_title=$lng.lbl_continue additional_button_class="main-button update-profile" type="input" assign="submit_button"}

{if $active_modules.Image_Verification and $show_antibot.on_registration eq 'Y' and $display_antibot}
{include file="modules/Image_Verification/spambot_arrest.tpl" mode="simple" id=$antibot_sections.on_registration antibot_err=$reg_antibot_err button_code=$submit_button}

{else}
<div class="button-row" align="center">
{$submit_button}
</div>
{/if}

</fieldset>
</form>

{include file="check_registerform_fields_js.tpl" is_opc=true}

{/if}

</div>
__________________
X-Cart 4.5
Reply With Quote
  #2  
Old 03-25-2016, 02:32 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 13,533
 

Default Re: Image Verification

It I snot only the tpl file. You will have to take this out of the template. But also modify the php script not to require this when saved from checkout page. It is probably include/register.php but you need to have some if statement when this is checked. Like "if $mode == 'checkout' ...."
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 03-25-2016, 10:43 PM
 
AKassing AKassing is offline
 

Member
  
Join Date: Jun 2013
Posts: 17
 

Default Re: Image Verification

Wow, that's a lot more difficult than I expected. Unfortunately I lack the skills to do this myself. Too bad the x-cart team did not offer this option i the module from the start.
__________________
X-Cart 4.5
Reply With Quote
  #4  
Old 03-26-2016, 06:40 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 13,533
 

Default Re: Image Verification

You can always hire us to do this for you.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:46 PM.

   

 
X-Cart forums © 2001-2018