public static function getPrice($originPrice, $discountCode, $request)
    {
        $discount = Discount_Shortcuts_GetDiscountByCodeOr404($discountCode);
        $engine = $discount->get_engine();
        return $engine->getPrice($originPrice, $discount, $request);
    }
public static function getPrice($originPrice, $discountCode, $request)
    {
        $discount = Discount_Shortcuts_GetDiscountByCodeOr404($discountCode);
        $engine = $discount->get_engine();
        return $engine->getPrice($originPrice, $discount, $request);
    }
public static function getPrice ( $ originPrice , $ discountCode , $ request ) { $ discount = Discount_Shortcuts_GetDiscountByCodeOr404 ( $ discountCode ) ; $ engine = $ discount -> get_engine ( ) ; return $ engine -> getPrice ( $ originPrice , $ discount , $ request ) ; }
Computes and returns new price after using given discount

@param integer $originPrice
@param string $discountCode
@param Pluf_HTTP_Request $request
@return integer
Computes and returns new price after using given discount