- Issue created by @tonytheferg
Invalidating the cache tags on the $parent_variation at the beginning of the
calculateBundlePrice
function inVadoOrderProcessor
seems to help:/** * Calculates the bundle price for the calculated price formatter. * * @param \Drupal\commerce_order\Entity\OrderItemInterface $order_item * The order item. */ protected function calculateBundlePrice(OrderItemInterface $order_item) { $parent_variation = $order_item->getPurchasedEntity(); if (!$parent_variation) { return; } Cache::invalidateTags($parent_variation->getCacheTags());
Then when loading a new page you see the change, but not on refreshing the same page.