Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2008
    Posts
    218
    Plugin Contributions
    0

    Default Changing Reviews Link and Star Rating to top of product info page

    I used the "Average Product Rating" Mod & I love it! I ideally would like to move the link, the Review Count, and the Star Rating images right underneath the product price, just right of the product image. I currently edited the /product_info_display.php file and moved the code to the top. The link image is in the right spot, but the stars and count are way under the product image. (You can get a better idea if you go to the link http://www.stevekwebdesign.com/index...roducts_id=181

    Also, I added images of what I would like to do in the attachments. the star_before file is the current status, and the star_after is what I would like it to look like.

    Hope this is all the info that some one will need to assist me!

    Here is the code for the "Review section" that I moved in the file:

    PHP Code:
    <!--eof free ship icon  -->

    <!--bof Reviews button and count-->
    <?php
      
    if ($flag_show_product_info_reviews == 1) {
        
    // if more than 0 reviews, then show reviews button; otherwise, show the "write review" button
        
    if ($reviews->fields['count'] > ) { ?>
    <div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' zen_href_link(FILENAME_PRODUCT_REVIEWSzen_get_all_get_params()) . '">' zen_image_button(BUTTON_IMAGE_REVIEWSBUTTON_REVIEWS_ALT) . '</a>'?></div>
    <br class="clearBoth" />
    <?php // 2P modified BOF - Average Product Rating
      
    echo '<p class="reviewCount">';
      if (
    $flag_show_product_info_reviews_count == 1) {
        echo 
    TEXT_CURRENT_REVIEWS ' <strong>' $reviews->fields['count'] . '</strong><br />';
        
    $stars_image_suffix str_replace('.''_'zen_round($reviews_average_rating->fields['average_rating'] * 20) / 2); // for stars_0_5.gif, stars_1.gif, stars_1_5.gif etc.
        
    $average_rating zen_round($reviews_average_rating->fields['average_rating'], 2);
        echo 
    TEXT_CURRENT_REVIEWS_RATING ' <strong>' $average_rating '</strong> ' zen_image(DIR_WS_TEMPLATE_IMAGES 'stars_' $stars_image_suffix '.gif'sprintf(BOX_REVIEWS_TEXT_OF_5_STARS$average_rating));
      } else {
        echo 
    '';
      }
      echo 
    '</p>';
    // 2P modified EOF - Average Product Rating ?>
    <?php 
    } else { ?>
    <div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITEzen_get_all_get_params(array())) . '">' zen_image_button(BUTTON_IMAGE_WRITE_REVIEWBUTTON_WRITE_REVIEW_ALT) . '</a>'?></div>
    <br class="clearBoth" />
    <?php
      
    }
    }
    ?>
    <!--eof Reviews button and count -->

     <!--bof Product description -->
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	star_before.jpg 
Views:	387 
Size:	56.6 KB 
ID:	6167   Click image for larger version. 

Name:	star_after.jpg 
Views:	361 
Size:	57.9 KB 
ID:	6168  

  2. #2
    Join Date
    Mar 2008
    Posts
    218
    Plugin Contributions
    0

    Default Re: Changing Reviews Link and Star Rating to top of product info page

    easy fix... I just took out the first <br class="clearBoth" />

 

 

Similar Threads

  1. Help adding a star rating to product info
    By ben harry in forum General Questions
    Replies: 1
    Last Post: 1 Sep 2013, 08:56 PM
  2. Product Info Star Rating
    By philip937 in forum General Questions
    Replies: 1
    Last Post: 4 Feb 2013, 12:47 PM
  3. Removing Star Rating in Product Reviews?
    By johnk in forum General Questions
    Replies: 0
    Last Post: 3 Feb 2010, 02:49 PM
  4. Reviews + Star Rating
    By dani0157 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Dec 2009, 03:51 PM
  5. Product page - how to show a link to the reviews page and reviews count?
    By Ronson in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 26 Mar 2009, 11:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR