How do I get product variations in a preprocess function?
$product = $variables['elements']['#commerce_product'];

  $variations = $product-&gt;getVariations();     

  foreach ($variations as $variation){    
      $list_price = $variation-&gt;getListPrice();
    // Do something with the variation list price here...
  }