For this excellent AJAX Orders Editor contribution, I found a small bug where add product fails when a product to be added has special characters need to be escaped in its title.

example:
Joseph's Cookies

needs to be translated to

Joseph's Cookies

.. before INSERT into database

The fix is to use the php function addslashes() on the product name so that the database insert happens correctly.

Paul Yip


More...