OrderModifier::Total PHP Méthode

Total() public méthode

Provides a modifier total that is positive or negative, depending on whether the modifier is chargable or not.
public Total ( ) : boolean
Résultat boolean
    public function Total()
    {
        if ($this->Type == "Deductable") {
            return $this->Amount * -1;
        }
        return $this->Amount;
    }