2016-07-07 2 views
0

우리는 리뷰 &의 평가 섹션을 표시하는 데 다음 코드를 사용합니다. 나는 별에게 위의 "제목"을 표시 할 : 나는 CSS로하려 할 때, 나를 위해 작동하지 않았다 This is really very good product위의 표시 등급

enter image description here

<?php $_items = $this->getReviewsCollection()->getItems();?> 
<div class="box-collateral box-reviews" id="customer-reviews"> 
    <?php if (count($_items)):?> 
     <div class="review-heading"> 
      <h2> 
       <?php echo $this->__('') ?> 
       <span class="reviewtab"> 
       <?php 
      // echo count($_items); 
       ?> 
       Ratings & Reviews 
       </span> 
      </h2> 
      <?php echo $this->getChildHtml('toolbar') ?> 
     </div> 
     <dl> 
     <?php foreach ($_items as $_review):?> 

      <dt> 
       <a href="<?php echo $this->getReviewUrl($_review->getId()) ?>"> 
        <?php echo $this->escapeHtml($_review->getTitle()) ?> 
       </a> 
      </dt> 
      <dd> 
       <?php $_votes = $_review->getRatingVotes(); ?> 

       <?php echo nl2br($this->escapeHtml($_review->getDetail())) ?> 


       <?php if (count($_votes)): ?> 
       <table class="ratings-table"> 
        <colgroup> 
         <col class="review-label" /> 
         <col class="review-value" /> 
        </colgroup> 
        <tbody> 
         <?php foreach ($_votes as $_vote): ?> 
         <tr> 
          <th><?php echo $this->escapeHtml($_vote->getRatingCode()) ?></th> 
          <td> 
           <div class="rating-box"> 
            <div class="rating" style="width:<?php echo $_vote->getPercent() ?>%;"></div> 
           </div> 
          </td> 
         </tr> 
         <?php endforeach; ?> 
        </tbody> 
       </table> 
       <?php endif; ?> 


       <span class="review-meta"> 
        <?php echo $this->__('Review by %s', $this->escapeHtml($_review->getNickname())) ?> 
        /
        <?php echo $this->__('(Posted on %s)', $this->formatDate($_review->getCreatedAt()), 'long') ?> 
       </span> 
      </dd> 
     <?php endforeach; ?> 
     </dl> 

     <?php // echo $this->getChildHtml('toolbar') ?> 
    <?php elseif($this->getParentBlock()): ?> 
     <?php echo $this->getParentBlock()->getReviewsSummaryHtml($this->getProduct(), 'short', true)?> 
    <?php endif;?> 
    <?php echo $this->getChildHtml('review_form') ?> 
</div> 

.

스와핑 코드를 시도했지만 나에게도 효과가 없었습니다. 나는 스와핑으로 실수하고 있습니까?

해결책 찾기를 도와주세요. 이 도움이 될 사전

답변

1

에서

감사합니다, 당신은 내가 생각하는 약간의 CSS를 변경해야 할 수도 있습니다.

<?php $_items = $this->getReviewsCollection()->getItems();?> 
<div class="box-collateral box-reviews" id="customer-reviews"> 
<?php if (count($_items)):?> 
    <div class="review-heading"> 
     <h2> 
      <?php echo $this->__('') ?> 
      <span class="reviewtab"> 
      <?php 
     // echo count($_items); 
      ?> 
      Ratings & Reviews 
      </span> 
     </h2> 
     <?php echo $this->getChildHtml('toolbar') ?> 
    </div> 
    <dl> 
    <?php foreach ($_items as $_review):?> 

     <dt> 
     <?php $_votes = $_review->getRatingVotes(); ?> 
      <?php if (count($_votes)): ?> 
      <table class="ratings-table"> 
       <colgroup> 
        <col class="review-label" /> 
        <col class="review-value" /> 
       </colgroup> 
       <tbody> 

        <?php foreach ($_votes as $_vote): ?> 
        <tr> 
         <th><?php echo $this->escapeHtml($_vote->getRatingCode()) ?></th> 
         <td> 
          <div class="rating-box"> 
           <div class="rating" style="width:<?php echo $_vote->getPercent() ?>%;"></div> 
          </div> 
         </td> 
        </tr> 
        <?php endforeach; ?> 
       </tbody> 
      </table> 
      <?php endif; ?> 
      <a href="<?php echo $this->getReviewUrl($_review->getId()) ?>"> 
       <?php echo $this->escapeHtml($_review->getTitle()) ?> 
      </a> 
     </dt> 
     <dd> 

      <?php echo nl2br($this->escapeHtml($_review->getDetail())) ?> 




      <span class="review-meta"> 
       <?php echo $this->__('Review by %s', $this->escapeHtml($_review->getNickname())) ?> 
       /
       <?php echo $this->__('(Posted on %s)', $this->formatDate($_review->getCreatedAt()), 'long') ?> 
      </span> 
     </dd> 
    <?php endforeach; ?> 
    </dl> 

    <?php // echo $this->getChildHtml('toolbar') ?> 
<?php elseif($this->getParentBlock()): ?> 
    <?php echo $this->getParentBlock()->getReviewsSummaryHtml($this->getProduct(), 'short', true)?> 
<?php endif;?> 
<?php echo $this->getChildHtml('review_form') ?> 

+0

는 지금은'stars'를 볼 수 없습니다. '리뷰 '탭에서 [here] (http://sbdev2.kidsdial.com/vintage-retro-bicycle-background-apple-iphone-4-phone-case.html)을 확인할 수 있습니다. – fresher

+0

코드를 편집했습니다. 지금 시도하십시오. – Twinkal

+0

고마워 .... – fresher

관련 문제