diff --git a/core/lib/Thelia/Core/Template/Loop/Category.php b/core/lib/Thelia/Core/Template/Loop/Category.php index 87ea0ec08..7c79811bf 100755 --- a/core/lib/Thelia/Core/Template/Loop/Category.php +++ b/core/lib/Thelia/Core/Template/Loop/Category.php @@ -165,7 +165,7 @@ class Category extends BaseLoop foreach ($categories as $category) { - if ($this->not_empty && $category->countAllProducts() == 0) continue; + if ($this->getNot_empty() && $category->countAllProducts() == 0) continue; $loopResultRow = new LoopResultRow(); diff --git a/core/lib/Thelia/Tests/Action/CartTest.php b/core/lib/Thelia/Tests/Action/CartTest.php index fb56f1f73..9442e526f 100644 --- a/core/lib/Thelia/Tests/Action/CartTest.php +++ b/core/lib/Thelia/Tests/Action/CartTest.php @@ -240,4 +240,9 @@ class CartTest extends \PHPUnit_Framework_TestCase $this->assertEquals($customer->getId(), $getCart->getCustomerId()); } + public function testAddArticle() + { + + } + } \ No newline at end of file