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

make the ampersand an invalid character company name field

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-24-2018, 01:19 PM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default make the ampersand an invalid character company name field

I was wondering how I make the ampersand symbol (&) an invalid character for the customer company name field. I'm having an issue where my printer will not print an order if there is an & in the company name field. It is really bizarre. So unless I go really slow printing orders from my email program to make sure each one actually prints, I miss orders because they don't go to the printer.

I can't find a fix with the printer so I figured making the & invalid might be the easiest fix for now.

Thanks.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #2  
Old 08-28-2018, 11:42 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,089
 

Default Re: make the ampersand an invalid character company name field

Quote:
Originally Posted by keystone
I was wondering how I make the ampersand symbol (&) an invalid character for the customer company name field. I'm having an issue where my printer will not print an order if there is an & in the company name field. It is really bizarre. So unless I go really slow printing orders from my email program to make sure each one actually prints, I miss orders because they don't go to the printer.

I can't find a fix with the printer so I figured making the & invalid might be the easiest fix for now.

Thanks.

You could just strip it from display on the printable invoice page. Shouldn't be too hard to do. Probably even a smarty strip tag would work.

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 03:31 PM.

   

 
X-Cart forums © 2001-2020