Coupon : Condition module cleaning

This commit is contained in:
gmorel
2014-01-05 01:14:41 +01:00
parent e606a6f8ce
commit 716e26986f
2 changed files with 0 additions and 20 deletions

View File

@@ -229,27 +229,14 @@ class MatchForTotalAmount extends ConditionAbstract
$cleanedCurrencies[$currency->getCode()] = $currency->getSymbol();
}
$name1 = $this->translator->trans(
'Price',
array(),
'condition'
);
$name2 = $this->translator->trans(
'Currency',
array(),
'condition'
);
return array(
self::INPUT1 => array(
'title' => $name1,
'availableOperators' => $this->availableOperators[self::INPUT1],
'availableValues' => '',
'value' => '',
'selectedOperator' => ''
),
self::INPUT2 => array(
'title' => $name2,
'availableOperators' => $this->availableOperators[self::INPUT2],
'availableValues' => $cleanedCurrencies,
'value' => '',

View File

@@ -194,15 +194,8 @@ class MatchForXArticles extends ConditionAbstract
*/
protected function generateInputs()
{
$name1 = $this->translator->trans(
'Quantity',
array(),
'condition'
);
return array(
self::INPUT1 => array(
'title' => $name1,
'availableOperators' => $this->availableOperators[self::INPUT1],
'value' => '',
'selectedOperator' => ''