Order Items Table - Edit Order Item

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
niall08
Commander (CMDR)
Commander (CMDR)
Posts: 175
Joined: Tue Dec 09, 2008 10:29 am

Order Items Table - Edit Order Item

Post by niall08 » Mon Jul 20, 2009 8:15 am

When thwe administrator edits the tax amount of an item that has been ordered, the entry in the ac_OrderItems table is not being updated.

Where is this edited value stored?

The gross figure is correct, but I need access to the edited order item prices..

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Order Items Table - Edit Order Item

Post by mazhar » Mon Jul 20, 2009 8:22 am

Did you checked I think if you save the order item after editing it should update the order item price in database. Make sure that after saving the order item you refreshed the table to view recent changes.

niall08
Commander (CMDR)
Commander (CMDR)
Posts: 175
Joined: Tue Dec 09, 2008 10:29 am

Re: Order Items Table - Edit Order Item

Post by niall08 » Mon Jul 20, 2009 8:44 am

Hi Mazhar,
Yes, if you edit the product price and save it is updated in the ac_OrderItems table.
I see where I was making the error..

I was using the "TaxAmount" field rather than the separate record for the tax - and using a calculation from the ShipMatrixRate table for the shipping cost - neither of which changed, unlike the separate records for Tax and Shipping in the ac_OrderItems table.

Now, is this assumption correct - the OrderItemTypeId for a product is 0, for tax is 3, and for shipping is 1???

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Order Items Table - Edit Order Item

Post by mazhar » Mon Jul 20, 2009 8:49 am

yes you are right. Product = 0, Shipping = 1 ,Tax = 3

niall08
Commander (CMDR)
Commander (CMDR)
Posts: 175
Joined: Tue Dec 09, 2008 10:29 am

Re: Order Items Table - Edit Order Item

Post by niall08 » Tue Jul 21, 2009 1:45 am

Thanks Mazhar - that's also made my SQL query ALOT lighter..

Post Reply