Zen Cart Logo
Forums / All Other Contributions/Addons / Dgreviews mod support required read review should = write review

Dgreviews mod support required read review should = write review

Views: 2,921

Results 1 to 8 of 8
30 Mar 2009, 10:07 PM
#1
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

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?

30 Mar 2009, 11:24 PM
#2
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

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:

<!--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:

<!--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 -->

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

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


31 Mar 2009, 9:48 AM
#3
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

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 :-)

1 Feb 2010, 3:27 AM
#4
pinkcolour avatar

pinkcolour

New Zenner

Join Date:
Feb 2010
Posts:
10
Plugin Contributions:
0

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

24 Nov 2010, 7:38 PM
#5
atl2rva avatar

atl2rva

New Zenner

Join Date:
Feb 2010
Posts:
81
Plugin Contributions:
0

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!

28 Jan 2011, 8:51 PM
#6
lidders avatar

lidders

New Zenner

Join Date:
Sep 2010
Location:
UK
Posts:
23
Plugin Contributions:
0

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

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 :smile:

15 Mar 2011, 8:02 PM
#7
chloec avatar

chloec

New Zenner

Join Date:
Mar 2011
Posts:
3
Plugin Contributions:
0

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

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

13 Aug 2013, 5:34 PM
#8
waterbender avatar

waterbender

New Zenner

Join Date:
May 2010
Posts:
84
Plugin Contributions:
0

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

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