Miva Merchant Development by Scot's Scripts

Scot's Scripts FAQs and Module Support

If you don't find the answers here contact us.
Documentation and support for our Miva modules is found here. If you can't find the answer you're looking for contact us and we'll add the information.
Does Google actually understand your Miva Merchant store? Our JSON-LD schema generator makes sure it does. Contact us to get started. (more info)

Ratings & Reviews / Text Reviews Page Code

Text Reviews Page Code

The text review display by default shows up under the star display. If you want to show the reviews somewhere else, use the following page code. If you're going to use another page, be sure the smr_reviews item is assigned to it.

    <mvt:item name="smr_reviews" param="load" />
    <h3>Customer Reviews</h3>
    <mvt:foreach iterator="review" array="smr_reviews:review_list">
      <div itemprop="review" itemscope itemtype="http://schema.org/Review">
        
          <div class="rv-float-left rv-padding-right">
            <mvt:if expr="l.settings:review:stars">
              <ul class="smr_rating &mvt:review:reviews_num_stars;">
            <mvt:else>
              <ul class="smr_rating smr_nostar">
            </mvt:if>
              <li class="smr_one"></li>
              <li class="smr_two"></li>
              <li class="smr_three"></li>
              <li class="smr_four"></li>
              <li class="smr_five"></li>
            </ul>
            <div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
              <span itemprop="ratingValue" content="&mvt:review:stars;"></span>
            </div>
          </div>
        <div class="rv-float-left" itemprop="datePublished">
          <small>
          reviewed: &mvt:review:date:month;/&mvt:review:date:day;/&mvt:review:date:year;
          <mvt:if expr="l.settings:review:review_name">
            <span itemprop="author">by &mvte:review:review_name;</span>
          </mvt:if>
          </small>
        </div>
        
        <div class="rv-clear rv-padding-bottom"></div>
        <div itemprop="description">
          <div>&mvte:review:review_text;</div>
        </div>
        <br>
      </div>	    </mvt:foreach>
    <div class="rv-prevnext">
      <mvt:if expr="l.settings:smr_reviews:rv_prev">
        <div class="rv-float-left">
          <a href="&mvte:global:sessionurl;screen=&mvte:global:screen;&amp;store_code=&mvte:global:store_code;&amp;rv_pos=&mvte:global:rv_pos;&amp;rv_prev=1&amp;rv_product_code=&mvte:global:rv_product_code;&amp;reviews_show_more=&mvte:global:reviews_show_more;"><b>&laquo;</b> prev page</a>
        </div>
      </mvt:if>
      <mvt:if expr="l.settings:smr_reviews:rv_next">
        <div class="rv-float-right">
          <a href="&mvte:global:sessionurl;screen=&mvte:global:screen;&amp;store_code=&mvte:global:store_code;&amp;rv_pos=&mvte:global:rv_pos;&amp;rv_next=1&amp;rv_product_code=&mvte:global:rv_product_code;&amp;product_code=&mvte:global:product_code;&amp;reviews_show_more=&mvte:global:reviews_show_more;">next page <b>&raquo;</b></a>
        </div>
      </mvt:if>
 
      <mvt:if expr="l.settings:smr_reviews:rv_next OR l.settings:smr_reviews:rv_prev AND NOT g.reviews_show_more">
        <div class="rv-text-center">
          <a href="&mvte:global:sessionurl;screen=&mvte:global:screen;&store_code=&mvte:global:store_code;&amp;reviews_show_more=1&amp;rv_pos=&mvte:global:rv_pos;&amp;rv_product_code=&mvte:global:rv_product_code;&amp;product_code=&mvte:global:product_code;&amp;">- show more -</a>
        </div>
      </mvt:if>
    </div>
      <div class="clear"></div>
  </mvt:if>
</mvt:if>
updated April 12, 2013