close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Order Summary/Details Duplicate Key Error

Thread began 5/12/2010 8:16 pm by d.heraty217756 | Last modified 5/13/2010 10:17 am by Jason Byrnes | 690 views | 2 replies |

d.heraty217756

Order Summary/Details Duplicate Key Error

Using eCart 4.5.2 (originally developed with eCart 2-3 years ago using previous versions). We have a single product with two color options and have the Add to Cart functionality adding unique items for each color selected. If the user only purchases one color, everything works fine, however, if the user purchases two colors, I get a duplicate key error because the page is attempting to save summary details to the db a second time (once for each unique item in the cart?).

I've made sure that the Add Summary to DB and Add Details to DB server behaviors are set to "before page load". I receive the error before the page loads and have confirmed that the summary (1 record) and details (2 records) have been saved to the db successfully.

I'm at a loss with what to do next. Any guidance would be greatly appreciated.

Thanks,
Dawn

Sign in to reply to this post

d.heraty217756

Figured out the duplicate key error was occurring when saving customer details to db... replaced existing code for storing customer info by adding a new "Store Cart Summary in DB" server behavior for the customer table and that fixed it. The problem with dealing with old code... it looks like it was originally inserted using the Store Cart Detail in DB server behavior, which caused the insert to loop through the cart for each item. The error wasn't discovered until adding additional items to the store.

Sign in to reply to this post

Jason ByrnesWebAssist

OK, glad to hear you got it working.

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...