Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Zip Code field - How to add font color?
Author « Topic »  

midvalleydrifter001
Ecommerce Template Expert

USA
934 Posts

Posted - 04/19/2018 :  20:42:15  
Hi All,

On step two of my checkout process I would like to make the below ZIP CODE FIRST 5 DIGITS ONLY field in RED. I have so many customers enter their zip code with the extra 4 digits and it throws an error when they enter their credit card number on the final page. I have made it BOLD but can't get it in Red. Any ideas? This mod I did making it BOLD was done in the vsadmin/includes.php file. $xxPostco='Zip / FIRST 5 DIGITS ONLY';
$xxZip='Zip / FIRST 5 DIGITS ONLY';

Thanks for your time,

Patrick


Please enter your "Billing Address"
Company Name
*Full Name
*Email
*Address
Apt # / Space #
*City
*State
*Country
*Zip / FIRST 5 DIGITS ONLY
*Phone


Edited by - midvalleydrifter001 on 04/19/2018 20:48:56

dbdave
ECT Moderator

USA
10451 Posts

Posted - 04/19/2018 :  20:48:48  
$xxPostco='Zip / <span style=""color:red;"">FIRST 5 DIGITS ONLY</span>';
$xxZip='Zip / <span style=""color:red;"">FIRST 5 DIGITS ONLY</span>';


Edited by - dbdave on 04/19/2018 20:50:49

midvalleydrifter001
Ecommerce Template Expert

USA
934 Posts

Posted - 04/19/2018 :  20:54:15  
Tried that. I doesn't work. It deletes everything above it. Name, email, address, city, state.

All I end up with is Country and Zip.

dbdave
ECT Moderator

USA
10451 Posts

Posted - 04/19/2018 :  21:30:09  
I suppose it's the double quotes there.
Forgot it was .php (double quotes for .asp)

try

$xxPostco='Zip / <span style="color:red;">FIRST 5 DIGITS ONLY</span>';
$xxZip='Zip / <span style="color:red;">FIRST 5 DIGITS ONLY</span>';

midvalleydrifter001
Ecommerce Template Expert

USA
934 Posts

Posted - 04/19/2018 :  21:50:58  
That turns the wording Red as needed...... but

It still removes all the above fields; Name, email, address, city, state.

All I end up with is Country and Zip.

Andy
ECT Moderator

95440 Posts

Posted - 04/20/2018 :  00:08:05  
Hi

Add this to your css file

#ziptxt:after {
content: " - 5 digits only";
color:#cc0000;
}

Andy

Please feel free to review / rate our software

midvalleydrifter001
Ecommerce Template Expert

USA
934 Posts

Posted - 04/20/2018 :  07:39:57  
Thanks Andy.

That works perfectly.

Patrick

Andy
ECT Moderator

95440 Posts

Posted - 04/20/2018 :  07:44:59  
Dave's suggestion would normally be a good one but there's already a span in the code there and that was causing the conflict you saw.

Andy

Please feel free to review / rate our software

midvalleydrifter001
Ecommerce Template Expert

USA
934 Posts

Posted - 04/20/2018 :  08:39:29  
This works great on desktop

How do I get it to work on mobile devices?

Andy
ECT Moderator

95440 Posts

Posted - 04/20/2018 :  08:53:55  
It should work fine on a mobile device - are you sure it's not cached?

Andy

Please feel free to review / rate our software

midvalleydrifter001
Ecommerce Template Expert

USA
934 Posts

Posted - 04/20/2018 :  08:58:16  
That was it Andy.

Refreshing the webpage on the phone didn't work.

Clearing browsing history worked.

Thanks for your time.

Much appreciated.

Patrick
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000