See the details here
if ($subgroup['yourfield']->value === '0'):
continue;
endif;
<?php
// No direct access
defined('_JEXEC') or die('Restricted access');
$input = JFactory::getApplication()->input;
$group = $this->group;
$i = 1;
$w = new FabrikWorker;
foreach ($group->subgroups as $subgroup) :
// ADD TEST
if ($subgroup['commande___DUE_TTC_raw']->value === '0.00'):
continue ;
endif ;
$introData = array_merge($input->getArray(), array('i' => $i));
?>
<div class="fabrikSubGroup">
<div data-role="group-repeat-intro">
<?php echo $w->parseMessageForPlaceHolder($group->repeatIntro, $introData);?>
</div>
<?php
// Add the add/remove repeat group buttons
if ($group->editable && ($group->canAddRepeat || $group->canDeleteRepeat)) : ?>
<div class="fabrikGroupRepeater pull-right btn-group">
<?php if ($group->canAddRepeat) :
echo $this->addRepeatGroupButton;
endif;
if ($group->canDeleteRepeat) :
echo $this->removeRepeatGroupButton;
endif;?>
</div>
<?php
endif;
?>
<div class="fabrikSubGroupElements">
<?php
// Load each group in a <ul>
$this->elements = $subgroup;
echo $this->loadTemplate('group');
?>
</div><!-- end fabrikSubGroupElements -->
</div><!-- end fabrikSubGroup -->
<?php
$i ++;
endforeach;
if (array_key_exists('commande___DUE_TTC', $subgroup)):
//var_dump($subgroup['commande___DUE_TTC']);
if ($subgroup['commande___DUE_TTC']->value === '0.00'):
continue ;
endif;
endif;
$My_Var = $this->getModel()->getElementData('commande___DUE_TTC', true) ;
var_dump($My_Var) ;
<?php
// No direct access
defined('_JEXEC') or die('Restricted access');
$input = JFactory::getApplication()->input;
$group = $this->group;
$i = 1;
$w = new FabrikWorker;
foreach ($group->subgroups as $subgroup) :
// ADD TEST
if (array_key_exists('DUE_TTC', $subgroup)):
// var_dump($subgroup['DUE_TTC']);
if ($subgroup['DUE_TTC']->value === '0'):
continue ;
endif;
endif;
$introData = array_merge($input->getArray(), array('i' => $i));
?>
<div class="fabrikSubGroup">
<div data-role="group-repeat-intro">
<?php echo $w->parseMessageForPlaceHolder($group->repeatIntro, $introData);?>
</div>
<?php
// Add the add/remove repeat group buttons
if ($group->editable && ($group->canAddRepeat || $group->canDeleteRepeat)) : ?>
<div class="fabrikGroupRepeater pull-right btn-group">
<?php if ($group->canAddRepeat) :
echo $this->addRepeatGroupButton;
endif;
if ($group->canDeleteRepeat) :
echo $this->removeRepeatGroupButton;
endif;?>
</div>
<?php
endif;
?>
<div class="fabrikSubGroupElements">
<?php
// Load each group in a <ul>
$this->elements = $subgroup;
echo $this->loadTemplate('group');
?>
</div><!-- end fabrikSubGroupElements -->
</div><!-- end fabrikSubGroup -->
<?php
$i ++;
endforeach;