示例#1
0
 /**
  * Delete a value within an order
  *
  * @param int orderId
  * @param int productId
  */
 public static function deleteOrderValue($orderId, $productId)
 {
     $db = FrontendModel::getContainer()->get('database');
     // update record
     $db->delete('catalog_orders_values', 'order_id = ? AND product_id = ?', array((int) $orderId, (int) $productId));
     // invalidate the cache for catalog
     FrontendModel::invalidateFrontendCache('catalog', FL::getWorkingLanguage());
 }