wilded1 Posted March 23, 2015 Share Posted March 23, 2015 Hi There. Don't know for sure what is the cause of this, but, since upgrading to v6 we are getting (randomly it seems) multiple instances (duplicates) of the same order with identical order numbers in the database 'order_summary' table and subsequently in the orders list in the back-end of CC. It also wants to print off multiple pages (one foe each instance) when you hit Print from the order summary on any one of the listed orders. Also; if you delete any one of them from the list, it deletes every instance of that order number and you are left with none of them. Following a little feedback today, it might be due to the 'print order form' button being pressed multiple times in the checkout; it being due to nothing happening on screen to indicate the button press is accepted after the customer presses the button. An older gentleman says this is what happened for him today. A bug to fix methinks Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 23, 2015 Share Posted March 23, 2015 This pesters me considerably. It's the first I have heard of it. I will try to reproduce this tomorrow and fix if/when it can be reproduced. I expect it may have something to do with overcaching. The cart_order_id field should always be unique so for starters the SQL code below will prevent duplicates... ALTER TABLE `CubeCart_order_summary` ADD UNIQUE (`cart_order_id`); Quote Link to comment Share on other sites More sharing options...
wilded1 Posted March 23, 2015 Author Share Posted March 23, 2015 Applied that alteration to the table and I quite understand that will stop the duplicate occurring. Thnaks Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 24, 2015 Share Posted March 24, 2015 I have fixed this issue: https://github.com/cubecart/v6/commit/a93231680572f8d691409bf113f0089f6e3a3d96 This will also be fixed in 6.0.2 due for release later today. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.