__('Commission Type') ?>: |
getCommission();
$secCommission = $program->getSecondaryCommission();
if ($program->getCommissionType() == 'fixed') {
$commissionText = Mage::helper('core')->currency($commission);
} elseif ($program->getCommissionType() == 'cart_fixed') {
$commissionText = Mage::helper('core')->currency($commission) . ' ' . $this->__('');
} else {
$commissionText = rtrim(rtrim(sprintf("%.2f", $commission), '0'), '.') . '%';
}
if ($program->getSecCommissionType() == 'fixed') {
$secText = Mage::helper('core')->currency($secCommission);
} elseif ($program->getSecCommissionType() == 'cart_fixed') { // Changed By Adam 22/07/2014
$secText = Mage::helper('core')->currency($secCommission) . ' ' . $this->__('');
} else {
$secText = rtrim(rtrim(sprintf("%.2f", $secCommission), '0'), '.') . '%';
}
$typeIsProfit = Mage::helper('affiliateplus')->affiliateTypeIsProfit();
if ($program->getAffiliateType()) {
$typeIsProfit = (bool) ($program->getAffiliateType() == 'profit');
}
?>
__('Pay-per-Profit') ?>
__('Pay-per-Sale') ?>
hasSecondaryCommission($program)): ?>
getCommissionType() == 'cart_fixed'): // Changed By Adam 22/07/2014?>
__('%s %s for whole cart you deliver', $commissionText, $profitText) ?>
__('%s %s for each sale you deliver', $commissionText, $profitText) ?>
__('%s %s for the first order of a customer, %s for next orders', $commissionText, $profitText, $secText) ?>
|
hasSecondaryDiscount($program)): ?>
__('Discount Type') ?>: |
getDiscount();
$secDiscount = $program->getSecondaryDiscount();
if ($program->getDiscountType() == 'fixed') {
$discountText = Mage::helper('core')->currency($discount);
$discountText .= ' ' . $this->__('discount on each purchased item');
} else if ($program->getDiscountType() == 'percentage') {
$discountText = rtrim(rtrim(sprintf("%.2f", $discount), '0'), '.') . '%';
$discountText .= ' ' . $this->__('discount on each purchased item');
} else if ($this->hasSecondaryDiscount($program)) {
$discountText = Mage::helper('core')->currency($discount);
$discountText .= ' ' . $this->__('discount');
} else {
$discountText = Mage::helper('core')->currency($discount);
$discountText .= ' ' . $this->__('discount on each order');
}
if ($program->getSecDiscountType() == 'fixed') {
$secText = Mage::helper('core')->currency($secDiscount);
$secText .= ' ' . $this->__('on each purchased item');
} else if ($program->getSecDiscountType() == 'percentage') {
$secText = rtrim(rtrim(sprintf("%.2f", $secDiscount), '0'), '.') . '%';
$secText .= ' ' . $this->__('on each purchased item');
} else {
$secText = Mage::helper('core')->currency($secDiscount);
$secText .= ' ';
}
?>
hasSecondaryDiscount($program)): ?>
__('%s on the first order, %s of next orders', $discountText, $secText) ?>
|