Skip to content

Commit

Permalink
Merge pull request #945 from inbaz/develop
Browse files Browse the repository at this point in the history
add values to counters to better check if a counter has been set for …
  • Loading branch information
BigAndini authored Apr 30, 2017
2 parents 85bbce7 + e53b476 commit 608ac95
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Binary file modified data/ers.mwb
Binary file not shown.
Binary file modified data/ers.mwb.bak
Binary file not shown.
10 changes: 9 additions & 1 deletion module/Admin/view/admin/counter/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,23 @@ $this->headTitle($title);
<tr>
<th>Name</th>
<th>Limit</th>
<th>Values</th>
<th>Current value</th>
<th class="text-right">
<a class="btn btn-success" href="<?php echo $this->url('admin/counter', array('action'=>'add'));?>"><i class="fa fa-plus"></i> Counter</a>
</th>
</tr>
<?php foreach ($counters as $counter) : ?>
<?php foreach ($counters as $counter) :
$variantValues = $counter->getProductVariantValues();
?>
<tr>
<td><?php echo $this->escapeHtml($counter->getName()); ?></td>
<td><?php echo $counter->getValue(); ?></td>
<td>
<?php foreach($variantValues as $value): ?>
<p><?php echo $value->getValue(); ?></p>
<?php endforeach; ?>
</td>
<td><i><?php echo $counterCurrentValues[$counter->getId()]; ?></i></td>
<td class="text-right">
<a class="btn btn-default" href="<?php echo $this->url('admin/counter', array('action'=>'edit', 'id' => $counter->getId()));?>"><i class="fa fa-edit"></i></a>
Expand Down

0 comments on commit 608ac95

Please sign in to comment.