Changed coupon condition parameter variables name

This commit is contained in:
Franck Allimant
2014-05-10 01:30:22 +02:00
parent 06d7eb4fc1
commit c671a1ff5e

View File

@@ -694,23 +694,23 @@ Sed facilisis pellentesque nisl, eu tincidunt erat scelerisque a. Nullam malesua
$condition1 = new MatchForTotalAmount($adapter); $condition1 = new MatchForTotalAmount($adapter);
$operators = array( $operators = array(
MatchForTotalAmount::INPUT1 => Operators::SUPERIOR, MatchForTotalAmount::CART_TOTAL => Operators::SUPERIOR,
MatchForTotalAmount::INPUT2 => Operators::EQUAL MatchForTotalAmount::CART_CURRENCY => Operators::EQUAL
); );
$values = array( $values = array(
MatchForTotalAmount::INPUT1 => 40.00, MatchForTotalAmount::CART_TOTAL => 40.00,
MatchForTotalAmount::INPUT2 => 'EUR' MatchForTotalAmount::CART_CURRENCY => 'EUR'
); );
$condition1->setValidatorsFromForm($operators, $values); $condition1->setValidatorsFromForm($operators, $values);
$condition2 = new MatchForTotalAmount($adapter); $condition2 = new MatchForTotalAmount($adapter);
$operators = array( $operators = array(
MatchForTotalAmount::INPUT1 => Operators::INFERIOR, MatchForTotalAmount::CART_TOTAL => Operators::INFERIOR,
MatchForTotalAmount::INPUT2 => Operators::EQUAL MatchForTotalAmount::CART_CURRENCY => Operators::EQUAL
); );
$values = array( $values = array(
MatchForTotalAmount::INPUT1 => 400.00, MatchForTotalAmount::CART_TOTAL => 400.00,
MatchForTotalAmount::INPUT2 => 'EUR' MatchForTotalAmount::CART_CURRENCY => 'EUR'
); );
$condition2->setValidatorsFromForm($operators, $values); $condition2->setValidatorsFromForm($operators, $values);
@@ -754,10 +754,10 @@ Sed facilisis pellentesque nisl, eu tincidunt erat scelerisque a. Nullam malesua
$condition1 = new MatchForXArticles($adapter); $condition1 = new MatchForXArticles($adapter);
$operators = array( $operators = array(
MatchForXArticles::INPUT1 => Operators::SUPERIOR, MatchForXArticles::CART_QUANTITY => Operators::SUPERIOR,
); );
$values = array( $values = array(
MatchForXArticles::INPUT1 => 4, MatchForXArticles::CART_QUANTITY => 4,
); );
$condition1->setValidatorsFromForm($operators, $values); $condition1->setValidatorsFromForm($operators, $values);
$conditions = new ConditionCollection(); $conditions = new ConditionCollection();