X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   make the ampersand an invalid character company name field (https://forum.x-cart.com/showthread.php?t=76486)

keystone 08-24-2018 01:19 PM

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.

BCSE 08-28-2018 11:42 AM

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


All times are GMT -8. The time now is 07:38 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.