London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
As this can't be reproduced in our standard environment, I suspect this your site-related. I'd suggest you to contact our developer support service so we can reproduce the issue and take further actions.
Regards,
/Q
We solved this by modifying the stored procedure mdpsp_avto_LineItemEx_Update - by removing parameters @f1, @f2, etc, which seem to be orphaned after we removed some Meta Fields associations from the LineItemEx Meta Class in the Commerce Manager UI?
Are the stored procedures not updated when Meta Class / Field associations are updated from the Commerce Manager UI?
This might be something originating from the Commerce Starter Kit if it can not be reproduced in a clean Commerce site.
Steps to reproduce:
The LineItem parameter is a custom class
Snippet
private void AddCustomProperties(LineItem lineItem, Cart cart) { var item = cart.OrderForms[0].LineItems.FindItemByCatalogEntryId(lineItem.Code); // Make sure we have all available data on the item before // we proceed lineItem.UpdateData(item); //TODO: Let specific model implementation populate these fields, we need to know too much about the model here item["SomeCustomMetaField"] = lineItem.SomeProperty; cart.AcceptChanges(); }
Hi,
It should (update the stored procedures when you change the metaclasses). I would suggest you to check if [mdpsp_sys_CreateMetaClassProcedure] and [mdpsp_sys_CreateMetaClassProcedureAll] are correct (match with the same vanilla version), then run [mdpsp_sys_CreateMetaClassProcedureAll] to make sure all of metaclass stored procedures are update-to-date with their metaclasses
Hello
In Episerver Commerce 10.3.0 when executing the following code:
we get an exception:
There has not been added items to any carts and tables OrderGroup, OrderForm OrderGroupNote, LineItems or any other table having todo with orders or line items are empty except OrderNoteType and OrderStatus.
The entries/variants being added have valid price and inventory set.
The OrderGroupId and OrderFormId in cartHelper.OrderForm keep getting incremented every time we call AddEntry. The previouse line items that has been attempted to add earlier can be found in cartHelper.LineItems, but nothing is showing up in the db.
Is there some way to resolve this?