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 > 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: 720
 

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 - Version 4.6.6
mods:
Reboot template
cdseo pro
AC-one page checkout
running on UNIX

www.keystonecandle.com -Version 4.6.0
mods:
cdseo pro
AC-onsale
running on UNIX
Reply With Quote
  #2  
Old 08-28-2018, 11:42 AM
  BCSE's Avatar 
BCSE BCSE is online now
 

X-Man
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 2,875
 

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 > Changing design


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 12:46 PM.

   

 
X-Cart forums © 2001-2018