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

X-Cart - reBOOT - Responsive Template
 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1341  
Old 07-28-2018, 02:04 AM
 
ITVV ITVV is online now
 

X-Adept
  
Join Date: Nov 2006
Location: UK
Posts: 874
 

Thumbs up Re: X-Cart - reBOOT - Responsive Template

@PhilJ

Many thanks Phil - brilliant as always

However, when clicking submit it gives the following error message: -
Quote:
Please include an '@' in the email address. 'test' is missing an '@'.
I would like to change the text of the error message however I cannot find it anywhere! I have searched the DB, languages and even the php and tpl files - what am I missing

Thanks again for your kind help Phil - I appreciate it very much.

Kind regards

ITVV
__________________
X-Cart Pro 4.6.6 Active and working great!
X-Cart Pro 4.1.7 Retired after 9 years of first class service

Server: CloudLinux (LiteSpeed)
Apache: 2.4.27
PHP: 7.0.21
MySQL: 10.0.31-MariaDB-cll-lve
Arch: x86_64
Reply With Quote
  #1342  
Old 07-28-2018, 02:27 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 3,490
 

Default Re: X-Cart - reBOOT - Responsive Template

skin/reboot/customer/main/login_form.tpl

Replace...
Quote:
type="text"
With...
Quote:
type="{if $config.email_as_login eq 'Y'}email{else}text{/if}"
__________________
xcartmods.co.uk


Reply With Quote

The following user thanks PhilJ for this useful post:
ITVV (07-28-2018)
  #1343  
Old 07-28-2018, 02:32 AM
 
ITVV ITVV is online now
 

X-Adept
  
Join Date: Nov 2006
Location: UK
Posts: 874
 

Default Re: X-Cart - reBOOT - Responsive Template

Hi again Phil,

The coding you provided works great

I just want to change the error message that the customer sees: -
Quote:
Please include an '@' in the email address. 'test' is missing an '@'.
I just cannot find the error text in the languages / DB?

Thanks for the help

Regards

ITVV
__________________
X-Cart Pro 4.6.6 Active and working great!
X-Cart Pro 4.1.7 Retired after 9 years of first class service

Server: CloudLinux (LiteSpeed)
Apache: 2.4.27
PHP: 7.0.21
MySQL: 10.0.31-MariaDB-cll-lve
Arch: x86_64
Reply With Quote
  #1344  
Old 07-28-2018, 02:55 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 3,490
 

Default Re: X-Cart - reBOOT - Responsive Template

Sorry my bad, you can use the additional code in red below to customise the messages...
Quote:
<input type="{if $config.email_as_login eq 'Y'}email{else}text{/if}" id="username" name="username"{if $config.email_as_login eq 'Y'} class="input-email"{/if} size="30" value="{#default_login#|default:$username|escape}" autofocus {literal}oninvalid="if (this.value == ''){this.setCustomValidity('This field is required!')} if (this.value != ''){this.setCustomValidity('The email you entered is invalid!')}" oninput="setCustomValidity('')"{/literal} />
__________________
xcartmods.co.uk


Reply With Quote

The following 2 users thank PhilJ for this useful post:
elmirage001 (07-28-2018), ITVV (07-28-2018)
  #1345  
Old 07-28-2018, 03:22 AM
 
ITVV ITVV is online now
 

X-Adept
  
Join Date: Nov 2006
Location: UK
Posts: 874
 

Default Re: X-Cart - reBOOT - Responsive Template



Thank you so much Phil - worked a treat.

Fab customer service as always



Have a great weekend

Kind regards as always

ITVV
__________________
X-Cart Pro 4.6.6 Active and working great!
X-Cart Pro 4.1.7 Retired after 9 years of first class service

Server: CloudLinux (LiteSpeed)
Apache: 2.4.27
PHP: 7.0.21
MySQL: 10.0.31-MariaDB-cll-lve
Arch: x86_64
Reply With Quote

The following user thanks ITVV for this useful post:
elmirage001 (07-28-2018)
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4


Thread Tools

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 10:57 PM.

   

 
X-Cart forums © 2001-2018