bug fix in loops
This commit is contained in:
@@ -161,11 +161,13 @@ class Category extends BaseLoop
|
||||
|
||||
$categories = $this->search($search, $pagination);
|
||||
|
||||
$notEmpty = $this->getNot_empty();
|
||||
|
||||
$loopResult = new LoopResult();
|
||||
|
||||
foreach ($categories as $category) {
|
||||
|
||||
if ($this->not_empty && $category->countAllProducts() == 0) continue;
|
||||
if ($notEmpty && $category->countAllProducts() == 0) continue;
|
||||
|
||||
$loopResultRow = new LoopResultRow();
|
||||
|
||||
|
||||
@@ -402,11 +402,11 @@ class Product extends BaseLoop
|
||||
->set("CHAPO", $product->getChapo())
|
||||
->set("DESCRIPTION", $product->getDescription())
|
||||
->set("POSTSCRIPTUM", $product->getPostscriptum())
|
||||
->set("PRICE", $product->getPrice())
|
||||
->set("PROMO_PRICE", $product->getPrice2())
|
||||
->set("WEIGHT", $product->getWeight())
|
||||
->set("PROMO", $product->getPromo())
|
||||
->set("NEW", $product->getNewness())
|
||||
//->set("PRICE", $product->getPrice())
|
||||
//->set("PROMO_PRICE", $product->getPrice2())
|
||||
//->set("WEIGHT", $product->getWeight())
|
||||
//->set("PROMO", $product->getPromo())
|
||||
//->set("NEW", $product->getNewness())
|
||||
->set("POSITION", $product->getPosition())
|
||||
;
|
||||
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
{loop name="cat" type="category" id="99999"}
|
||||
{loop name="prod" type="product" category="#ID"}
|
||||
{/loop}
|
||||
{/loop}
|
||||
Reference in New Issue
Block a user