close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

eCart 3 and apostrophes

Thread began 12/01/2010 9:03 am by msummers194171 | Last modified 12/07/2010 11:19 am by Jason Byrnes | 1183 views | 7 replies |

msummers194171

eCart 3 and apostrophes

My client with an eCart 3 site is telling me that any apostrophe in a name or an address will cause the order entry process to fail. Apparently the Authorize.Net part succeeds because the CC is charged for the order, but the order does not appear in the database. Any suggestions how I can fix this? I do NOT want to upgrade this site to eCart 5 at this time unless I absolutely have to do so.

Sign in to reply to this post

codamedia

The simplest thing to do is strip the apostrophe's from those fields when the post is made. Validate the input and correct as needed! That's never a bad idea at the best of times.

Sign in to reply to this post

msummers194171

My concern is that this would then interfere with the transaction validation. After all, "O'Leary" is not the same as "O'Leary" or "OLeary".

Sign in to reply to this post

Jason ByrnesWebAssist

the issue is occuring when it goes into the database, so strip apostrophes on storing to the database, this way the data sent to Authorize.net will not be effected.

Sign in to reply to this post

msummers194171

Thanks, Jason. I'll see if I can find that spot. Having saved the item to the database with the apostrophe replaced with an entity, wouldn't I need to replace in the other direction when that user returns for another order?

Sign in to reply to this post

Jason ByrnesWebAssist

I'm sorry, i dont quite follow, once the apostrophe has been converted to an entity, it should remain converted.

Sign in to reply to this post

msummers194171

I'm a little confused here. My client is telling me that when an order is placed from someone with an apostrophe in their name or their address, that the order never appears in the database, although the card and transaction is approved by AuthNet and the client is debited for the order.

When I search the users table for users who have registered where the last name or the address fields contain an apostrophe character, I can find a dozen or so instances. When I search the orders table for such matches, there are zero instances, so what she is telling me seems correct. Why is this data being entered without problems into the users table, but not into the orders table?

Presumably, switching the apostrophe with the ' entity would allow that data to be entered into the orders table without issue, but I cannot find a convenient place to do that after the transaction has been approved in the confirm page and before the data is entered in the checkout success page. Any suggestions?

Sign in to reply to this post

Jason ByrnesWebAssist

It would seam to me that the user registration page has code in place to convert the apostrophe.


You should convert the apostrophe character to the html entity in the store order summary behavior or the store order details behavior.

In most cases, these behaviors are on the confirm page.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...