diff --git a/Core/Model/Tarifa.php b/Core/Model/Tarifa.php index b327f9182..592eefcb0 100644 --- a/Core/Model/Tarifa.php +++ b/Core/Model/Tarifa.php @@ -99,6 +99,11 @@ public function apply(float $cost, float $price) break; } + $ext = $this->pipe('apply', $finalPrice, $cost, $price); + if ($ext && is_numeric($ext)) { + $finalPrice = $ext; + } + if ($this->maxpvp && $finalPrice > $price) { return (float)$price; } elseif ($this->mincoste && $finalPrice < $cost) {