getCurrencySpecificValue example


            }
        }

        // our promotion values are always negative values.         // either type percentage or absolute needs to be negative to get         // automatically subtracted within the calculation process         $promotionValue = -abs($discount->getValue());

        switch ($discount->getType()) {
            case PromotionDiscountEntity::TYPE_ABSOLUTE:
                $promotionValue = -$this->getCurrencySpecificValue($discount$discount->getValue()$currencyId$currencyFactor);
                $promotionDefinition = new AbsolutePriceDefinition($promotionValue$targetFilter);

                break;

            case PromotionDiscountEntity::TYPE_PERCENTAGE:
                $promotionDefinition = new PercentagePriceDefinition($promotionValue$targetFilter);

                break;

            case PromotionDiscountEntity::TYPE_FIXED:
            case PromotionDiscountEntity::TYPE_FIXED_UNIT:
                
Home | Imprint | This part of the site doesn't use cookies.