Rank: Member
Joined: 6/4/2004(UTC) Posts: 291
|
I'm having some major issues trying to edit orders.
I went in to the admin, and tried to edit an order, but was unable to do so.
I'd placed the original order with a quantity of 1. I changed it to 2, but nothing I clicked would apply the changes.
Then I tried deleting the product and adding it back in.
Even though I specified a quantity of 2, it came up as a quantity of 0. (Actually, it was blank.)
So, I can't add new products to an existing order, nor can I edit the products.
Any thoughts?? |
Thanks,
Christopher |
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
Are you seeing any errors in the event log when this is happening? |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 6/4/2004(UTC) Posts: 291
|
Not when trying to edit the amount. Only when trying to delete the product. (Which I'm assuming is because it's throwing errors when trying to delete a product with 0 quantity. (Which in theory means it shouldn't be there I guess?))
Here's the log:
12/11/2006 9:15:29 AM Error <br>Session:809dcff2-ff0d-4c8e-a1e6-65d18262f234<br>To:http://www.firefold.com/BVAdmin/Orders/EditOrder.aspx?id=d9e967b7-77a7-488b-89ee-75ec8d16360e <br>From:http://www.firefold.com/BVAdmin/Orders/EditOrder.aspx?id=d9e967b7-77a7-488b-89ee-75ec8d16360e<br>User:192.168.129.187(192.168.129.187)<br>Agent:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727) 12/11/2006 9:15:29 AM Microsoft.VisualBasic Conversion from string "" to type 'Decimal' is not valid.[ at Microsoft.VisualBasic.CompilerServices.Conversions.ToDecimal(String Value, NumberFormatInfo NumberFormat) at Microsoft.VisualBasic.CompilerServices.Conversions.ToDecimal(String Value) at BVAdmin_Orders_EditOrder.ModifyQuantities(Order o) at BVAdmin_Orders_EditOrder.SaveOrder() at BVAdmin_Orders_EditOrder.btnSaveChanges_Click(Object sender, ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ] 12/11/2006 9:15:14 AM Microsoft.VisualBasic Conversion from string "" to type 'Decimal' is not valid.[ at Microsoft.VisualBasic.CompilerServices.Conversions.ToDecimal(String Value, NumberFormatInfo NumberFormat) at Microsoft.VisualBasic.CompilerServices.Conversions.ToDecimal(String Value) at BVAdmin_Orders_EditOrder.ModifyQuantities(Order o) at BVAdmin_Orders_EditOrder.SaveOrder() at BVAdmin_Orders_EditOrder.ItemGridView_RowDeleting(Object sender, GridViewDeleteEventArgs e) at System.Web.UI.WebControls.GridView.OnRowDeleting(GridViewDeleteEventArgs e) at System.Web.UI.WebControls.GridView.HandleDelete(GridViewRow row, Int32 rowIndex) at System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) at System.Web.UI.WebControls.GridView.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.GridViewRow.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ] 12/11/2006 9:15:14 AM Error <br>Session:809dcff2-ff0d-4c8e-a1e6-65d18262f234<br>To:http://www.firefold.com/BVAdmin/Orders/EditOrder.aspx?id=d9e967b7-77a7-488b-89ee-75ec8d16360e <br>From:http://www.firefold.com/BVAdmin/Orders/EditOrder.aspx?id=d9e967b7-77a7-488b-89ee-75ec8d16360e<br>User:192.168.129.187(192.168.129.187)<br>Agent:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727) |
Thanks,
Christopher |
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
Okay, when you went to edit the order, did you enter the quantity and click on "save changes"? What did you try to click when you were trying to save the quantity changes? I need you to try to walk me through in as much detail as possible exactly how you went about editing the order and the steps needed to reproduce. Because here I can change the quantity, delete items, add items, all without error.
Also, does this happen with all products, or only a particular product? |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 6/4/2004(UTC) Posts: 291
|
OK. I'll run throught it again, writing down each step.
Note 1: I placed the order as a customer, not as an admin. (So I created a new account, and placed an order.)
Step 1: Log into bvadmin. Step 2: Go to Order. (clicking 'view')
Note 2: The order currently shows quantity area as blank, so line total is $0.00 for each item there.
Step 3: I click 'edit order' and scroll down to the list of products
Note 3: It's not specific to any one product
Step 4: Change quantity
Step 5: Scroll down to the area below the total and click 'save changes'
Note 4: It displays the message 'changes saved' but nothing changes. The quantity area is still blank, and the total hasn't changed.
Side note: I also tried clicking 'edit' on the product, changing the quantity, and then clicking 'save changes' on the 'edit line item', and it displays the message 'Line Item Updated' but again, nothing changes.
Side note 2: During this entire process no new errors were put into the event log.
Any thoughts? |
Thanks,
Christopher |
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
So, when you view the order, the quantity area is always blank? Judging from the steps order above, you are seeing a blank quantity when you are on the view screen, correct? Then, when you click edit, there is no quantity in the box on the edit screen. If so, then it appears that this has little to do with editing products, and more to do with why your order is not displaying correctly. When you placed the order, where there any errors created during that process? |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 6/4/2004(UTC) Posts: 291
|
No. The correct quantity of the order shows up if I don't edit it.
If I try to edit it, nothing happens. If I try to add something, it shows up as a blank quantity.
So, when I (as a customer) placed the order, the quantity was 1. When I logged into the admin and tried to edit it, I couldn't change it from quantity= 1.
So I deleted it, and tried to add it back in. (And I even tried adding a completely different product.)
Both times they showed up as a blank quantity, and I was unable to change them.
Does that make sense? |
Thanks,
Christopher |
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
Can you run this sql replacing your order number where 2164 is:
SELECT * FROM bvc_Order AS o JOIN bvc_LineItem As l ON o.Bvin = l.OrderBvin JOIN bvc_Product As p ON l.ProductId = p.Bvin WHERE OrderNumber = '2164'
Then send the results to me in an e-mail. Please run the sql immediately after the order is placed, then again after you click the edit order button, then once more after you try to change the quantity and hit save changes.
Thanks, Justin Etheredge |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 6/4/2004(UTC) Posts: 291
|
I did that, and sent you 3 different emails
Chris |
Thanks,
Christopher |
|
|
|
Rank: Member
Joined: 8/17/2006(UTC) Posts: 681
|
Cristopher, Just a shot in the dark: I think your product has no stock and it's set to Leave on Stock (Do Not Allow orders). Corneliu. |
|
|
|
|
Rank: Member
Joined: 6/4/2004(UTC) Posts: 291
|
Actually it's set as stock disabled. (The stock amount is not monitored.)
That's what doesn't make sense.
If I enable the monitoring of that item and adjust the amount, I can change it, but if it's an item that I don't monitor stock for, I can't change the amount. |
Thanks,
Christopher |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.