orderedProductsCount
function, since version 1.5.6
categories: prestashop
orderedProductsCount(orderId, productId)
This function returns quantity of specific product purchased via specific order.
Parameters
orderID ID of order productId ID of product
return type
number product quantity if product was ordered, null otherwise
examples
orderedProductsCount(order.id, 10);