change price if needed when customer log in or log out

This commit is contained in:
Manuel Raynaud
2014-04-29 11:35:10 +02:00
parent 406b06e09d
commit d0edbdfd5b
8 changed files with 162 additions and 159 deletions

View File

@@ -51,7 +51,7 @@ class Cart extends BaseAction implements EventSubscriberInterface
$customer = $cart->getCustomer();
$discount = 0;
if(null !== $customer && $customer->getDiscount() > 0) {
if (null !== $customer && $customer->getDiscount() > 0) {
$discount = $customer->getDiscount();
}
@@ -160,7 +160,7 @@ class Cart extends BaseAction implements EventSubscriberInterface
$customer = $cart->getCustomer();
$discount = 0;
if(null !== $customer && $customer->getDiscount() > 0) {
if (null !== $customer && $customer->getDiscount() > 0) {
$discount = $customer->getDiscount();
}