Back to PhocacartPriceBulkprice class

Method removePriceHistoryItems

public static
removePriceHistoryItems
(mixed $cid)

Method removePriceHistoryItems - Source code

public static function removePriceHistoryItems($cid)
{
    $db = Factory::getDBO();
    ArrayHelper::toInteger($cid);
    $cids = implode(',', $cid);
    $query = ' DELETE ' . ' FROM #__phocacart_product_price_history' . ' WHERE bulk_id IN ( ' . $cids . ' )' . ' AND type = 2';
    $db->setQuery($query);
    $db->execute();
}