I would like to update stockQuantity after a purchase, so I’m updating the list of the products of the order ( orderItem’s product )
I should so filter the orderitems to find the Quantity of it then remove this quantity from the product’s stock quantity.
I issue that I can’t find “this product” of the filtered window
products
orders
order items (with qty of product per order and possibly fulfilment status etc (or maybe that is order level… depends on how you fulfil)
Hi , thanks ,
I dont understand well your proposition sorry .
How can i select This order item ?
I’m getting this order item in the filtered popup , but is it the order item of actual product or the the order item of the filtered loop ?