modules/acm_cart/src/CartStorage.php
public function clearCartItemsStockCache() {
    $items = $this->items();

    if (empty($items)) {
      return;
    }

    foreach ($items as $item) {
      $sku_entity = SKU::loadFromSku($item['sku']);
      $sku_entity->refreshStock();
    }
  }
public function clearCartItemsStockCache() {
    $items = $this->items();

    if (empty($items)) {
      return;
    }

    foreach ($items as $item) {
      $sku_entity = SKU::loadFromSku($item['sku']);
      $sku_entity->refreshStock();
    }
  }
public function clearCartItemsStockCache ( ) { $ items = $ this -> items ( ) ; if ( empty ( $ items ) ) { return ; } foreach ( $ items as $ item ) { $ sku_entity = SKU :: loadFromSku ( $ item [ 'sku' ] ) ; $ sku_entity -> refreshStock ( ) ; } }
Helper function to clear stock cache of all items in cart.
Helper function to clear stock cache of all items in cart .