original_string: public function setItemPriceCalculated(array &$item, $product_model)
      {
          $calculated = $product_model->calculate($item);
  
          if ($item['price'] != $calculated) {
              $item['original_price'] = $item['price'];
          }
  
          $item['price'] = $calculated;
      }
code: public function setItemPriceCalculated(array &$item, $product_model)
      {
          $calculated = $product_model->calculate($item);
  
          if ($item['price'] != $calculated) {
              $item['original_price'] = $item['price'];
          }
  
          $item['price'] = $calculated;
      }
code_tokens: public function setItemPriceCalculated ( array & $ item , $ product_model ) { $ calculated = $ product_model -> calculate ( $ item ) ; if ( $ item [ 'price' ] != $ calculated ) { $ item [ 'original_price' ] = $ item [ 'price' ] ; } $ item [ 'price' ] = $ calculated ; }
docstring: Adjust an original price according to applied price rules
  @param array $item
  @param \gplcart\core\models\Product $product_model
docstring_tokens: Adjust an original price according to applied price rules