remove commented code
This commit is contained in:
@@ -181,13 +181,6 @@ class TranslationsController extends BaseAdminController
|
||||
case 'ma' :
|
||||
$template = new TemplateDefinition($item_name, TemplateDefinition::EMAIL);
|
||||
break;
|
||||
|
||||
default:
|
||||
/*
|
||||
throw new \InvalidArgumentException(
|
||||
$this->getTranslator()->trans("Undefined translation type: %item", ['%item' => $item_to_translate])
|
||||
);
|
||||
*/
|
||||
}
|
||||
|
||||
if ($template) {
|
||||
|
||||
@@ -230,10 +230,6 @@ class FreeProduct extends AbstractRemoveOnProducts
|
||||
$this->setRelatedCartItem($eligibleProduct, $cartEvent->getCartItem()->getId());
|
||||
|
||||
$freeProductCartItem = $cartEvent->getCartItem();
|
||||
|
||||
// Setting product price is dangerous, as the customer could change the ordered quantity of this product.
|
||||
// We will instead add the product price to the order discount.
|
||||
// $cartEvent->getCartItem()->setPrice(0)->save();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user