remove useless code
This commit is contained in:
committed by
Manuel Raynaud
parent
4e691eea27
commit
ce80360a23
@@ -78,17 +78,17 @@ class OrderCoupon extends BaseLoop implements PropelSearchLoopInterface
|
|||||||
/** @var OrderCoupon $orderCoupon */
|
/** @var OrderCoupon $orderCoupon */
|
||||||
foreach ($loopResult->getResultDataCollection() as $orderCoupon) {
|
foreach ($loopResult->getResultDataCollection() as $orderCoupon) {
|
||||||
$loopResultRow = new LoopResultRow($orderCoupon);
|
$loopResultRow = new LoopResultRow($orderCoupon);
|
||||||
$conditions = $conditionFactory->unserializeConditionCollection(
|
/*$conditions = $conditionFactory->unserializeConditionCollection(
|
||||||
$orderCoupon->getSerializedConditions()
|
$orderCoupon->getSerializedConditions()
|
||||||
);
|
);*/
|
||||||
|
|
||||||
$now = time();
|
$now = time();
|
||||||
$datediff = $orderCoupon->getExpirationDate()->getTimestamp() - $now;
|
$datediff = $orderCoupon->getExpirationDate()->getTimestamp() - $now;
|
||||||
$daysLeftBeforeExpiration = floor($datediff/(60*60*24));
|
$daysLeftBeforeExpiration = floor($datediff/(60*60*24));
|
||||||
|
|
||||||
$cleanedConditions = array();
|
/*$cleanedConditions = array();
|
||||||
|
|
||||||
/*foreach ($conditions->getConditions() as $condition) {
|
foreach ($conditions->getConditions() as $condition) {
|
||||||
$cleanedConditions[] = $condition->getToolTip();
|
$cleanedConditions[] = $condition->getToolTip();
|
||||||
}*/
|
}*/
|
||||||
$loopResultRow->set("ID", $orderCoupon->getId())
|
$loopResultRow->set("ID", $orderCoupon->getId())
|
||||||
|
|||||||
Reference in New Issue
Block a user