태그가 지정된 제품 수를 알아야합니다. 나는 이름과 URL을 얻고있다. 이 코드를 사용하고 있습니다 :태그가있는 모든 제품을 자홍색으로 계산해야합니다.
<?php if(sizeof($this->getTags()) > 0): ?>
<ul class="tags-list" style="margin-left:10px;">
<?php foreach ($this->getTags() as $_tag): ?>
<li><a href="<?php echo $_tag->getTaggedProductsUrl() ?>" style="font-size:<?php echo $_tag->getRatio()*70+100 ?>%; text-decoration:none; font-family:Trebuchet MS;"><?php echo $this->htmlEscape($_tag->getName()) ?></a>**(want the count here like 5)**</li>
<?php endforeach; ?>
</ul>
<?php else: ?>
<p class="note-msg"><?php echo $this->__('There are no tags available.') ?></p>
<?php endif; ?>
질문을 명확히해야합니다. 그렇지 않으면 폐쇄 될 것이라고 생각합니다. –
@ It 's Your Fault : 모든 태그의 개수를 표시해야합니다. cloth (12) – mukund002