Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Dgreviews mod support required read review should = write review

    Hi All,

    I can't seem to find a support thread for this mod, so I'm starting a new thread. I installed the DGREVIEWS Mod and it's working quite well apart from this niggle.

    The mod is designed to display a list of reviews on the product page so that anyone looking at the product page can see the reviews without having to click the "READ REVIEWS" button.

    So far, so good. It does what it say on the box. However, it leaves the "READ REVIEWS" button on the product page! This is annoying as it seems obsolete when all reviews are visible without clicking it.

    My question then, is how do I change the "READ REVIEWS" button to the "WRITE A REVIEW" button?


  2. #2
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Dgreviews mod support required read review should = write review

    I just installed this...I am liking it LOL and I just removed the following sections of code in the tpl_product_info_display.php

    Save the changed template to your override folder if you don't already have it there....and make sure to backup first lol

    Remove the sections in red:

    Code:
    <!--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'] > 0 ) { ?>
    <div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS, zen_get_all_get_params()) . '">' . zen_image_button(BUTTON_IMAGE_REVIEWS, BUTTON_REVIEWS_ALT) . '</a>'; ?></div>
    <br class="clearBoth" />
    <p class="reviewCount"><?php echo ($flag_show_product_info_reviews_count == 1 ? TEXT_CURRENT_REVIEWS . ' ' . $reviews->fields['count'] : ''); ?></p>
    <?php } else { ?>
    <div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, zen_get_all_get_params(array())) . '">' . zen_image_button(BUTTON_IMAGE_WRITE_REVIEW, BUTTON_WRITE_REVIEW_ALT) . '</a>'; ?></div>
    <br class="clearBoth" />
    <?php
      }
    }
    ?>
    <!--eof Reviews button and count -->
    So I was left with just:

    Code:
    <!--bof Reviews button and count-->
    
    <div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, zen_get_all_get_params(array())) . '">' . zen_image_button(BUTTON_IMAGE_WRITE_REVIEW, BUTTON_WRITE_REVIEW_ALT) . '</a>'; ?></div>
    <br class="clearBoth" />
    
    <!--eof Reviews button and count -->
    May not be the best way to do it but it works for me since I have a link to all reviews in the sidebox anyway :)

    **edited to add in, if you still want the reviews count there, just re-add this line under the button code:

    Code:
    <p class="reviewCount"><?php echo ($flag_show_product_info_reviews_count == 1 ? TEXT_CURRENT_REVIEWS . ' ' . $reviews->fields['count'] : ''); ?></p>
    

    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  3. #3
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Dgreviews mod support required read review should = write review

    Wow, thanks for that, it worked an absolute treat first time perfetco!!

    Thanks so much :-)

  4. #4
    Join Date
    Feb 2010
    Posts
    10
    Plugin Contributions
    0

    Default Re: Dgreviews mod support required read review should = write review

    Hi, I installed the dgReviews and it works fine, except it moves all of my sidebox to the bottom of my page. I know it says on the "read me" file that this might happen, and says that I should edit the dgReviews.php file to fit my current template (which is apple zen), but I don't know what I should be editing on this file. Can someone help me?

    Zen Cart 1.3.8a
    Patch: 1::
    Database Patch Level: 1.3.8

  5. #5
    Join Date
    Feb 2010
    Posts
    81
    Plugin Contributions
    0

    Default Re: Dgreviews mod support required read review should = write review

    This mod along with the code mentioned in this thread did exactly what I was looking for. Thanks!

  6. #6
    Join Date
    Sep 2010
    Location
    UK
    Posts
    23
    Plugin Contributions
    0

    Default Re: Dgreviews mod support

    Wasn't sure whether to start a new thread....

    Anyway, have installed dgreviews and it's working perfectly. I wondered whether it is possible to make a change to the title. So where is says "Customer Reviews" above the reviews, is it possible to have it say "[Product Name] Reviews" and it automatically pull in the name of the product? I'm still learning and I'm afraid this is beyond my abilities but if anyone knows if this is possible then I'd be most grateful.

    TIA

  7. #7
    Join Date
    Mar 2011
    Posts
    3
    Plugin Contributions
    0

    Default Re: Dgreviews mod support

    In the readme it says that this mod may push the sideboxes down to the bottom of the page for some layouts and it says to make the changes in the tpl_dgReview.php but can anyone pls tell me what exactly I should be editing? Any help would be appreciated! Thanks in advance

  8. #8
    Join Date
    May 2010
    Posts
    84
    Plugin Contributions
    0

    Default Re: Dgreviews mod support

    Hi, is this module on the plugin page still compatible with the latest zen cart v1.5.1?

 

 

Similar Threads

  1. Average Product Review / Write Review
    By willwright111 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 20 Jul 2010, 03:58 PM
  2. write a review
    By SDC in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 13 Sep 2008, 02:41 PM
  3. Write a review as guest
    By ngr in forum General Questions
    Replies: 3
    Last Post: 14 Apr 2008, 10:23 PM
  4. write a review
    By MB1 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Dec 2006, 07:38 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