Thread: Reviews

Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 37
  1. #21
    Join Date
    Feb 2007
    Posts
    104
    Plugin Contributions
    0

    Default Re: Reviews, Average Rating feature

    Quote Originally Posted by all4coffee View Post
    I took care of this problem by editing yet another file tpl_reviews.php where I just eliminated REVIEWED_BY field. The page showing all reviews shows the date added only which works for me.

    After reading past posts I'm still confused about the avarage rating:
    is it or it is not a fuction of the Zen Cart v. 1.3.7 ? In the past Dr. Byte implicated that it might be... If so how to activate this function?

    I'm having the same problem. Where is this file located: tpl_reviews.php?

  2. #22
    Join Date
    Feb 2008
    Posts
    52
    Plugin Contributions
    0

    Default Re: Reviews

    How would you remove the model number from showing in the review of an item?

  3. #23
    Join Date
    Feb 2008
    Posts
    52
    Plugin Contributions
    0

    Default Re: Reviews

    I found it. You change the file tpl_product_reviews_default.php in:

    /includes/templates/template_default/templates/

    You change the line with:

    <?php echo $products_name . $products_model; ?>

    To:

    <?php echo $products_name ?>

  4. #24
    Join Date
    Sep 2008
    Posts
    101
    Plugin Contributions
    0

    Default Re: Reviews

    Earlier in this thread, Seebra came up with an excellent way to just have the first name and last initial for commenters. But another Zenner had trouble implementing that code in the tpl_products_reviews_info_default.php file.

    Here is what you need to do. Change the code around line 55 to this:

    Code:
    <div id="reviewsInfoDefaultMainContent" class="content"><?php echo zen_break_string(nl2br(zen_output_string_protected(stripslashes($review_info->fields['reviews_text']))), 60, '-<br />'); ?></div>
    <div id="reviewsInfoDefaultDate" class="bold">
    <?php echo sprintf(TEXT_REVIEW_DATE_ADDED, zen_date_short($review_info->fields['date_added'])); ?>&nbsp;<?php $thename = sprintf(TEXT_REVIEW_BY, zen_output_string_protected($review_info->fields['customers_name'])); $idArray=split(" ",$thename);
    $by=$idArray[0];
    $fname=$idArray[1];
    $lname=$idArray[2];
    $lnameuse = substr($lname,0,1); ?>
    <? echo 'by ' . $fname;?> <? echo $lnameuse;?>.
    </div>
    That works.

    (I added the word "by" before the name because I preferred that. Change if you don't. )
    Zen Cart 1.3.8a - Database Patch Level: 1.3.8 - PHP Version 5.2.6

  5. #25
    Join Date
    Dec 2008
    Posts
    57
    Plugin Contributions
    0

    Default Re: Reviews

    Installed average product review rating - everything is turned on but when i tested by posting review, the review doesn't appear on the product listing page. where can i find to turn on the post ? thanks

  6. #26
    Join Date
    Dec 2008
    Posts
    57
    Plugin Contributions
    0

    help question Re: Reviews

    Edit: i found the way to turn review status on. but the only thing is that I will not use review sidebox to show review comments. I want to be able to see review comments on the products' page which I click on either categories or nav item links. Any idea how to add review comments? help will be very much appreciated. thank you

  7. #27
    Join Date
    Dec 2008
    Posts
    57
    Plugin Contributions
    0

    help question Re: Reviews

    never mind - by chance i found dgReview add-on. everything is fine except that I cannot use
    Code:
    <div id="reviewsInfoDefaultMainContent" class="content"><?php echo zen_break_string(nl2br(zen_output_string_protected(stripslashes($review_info->fields['reviews_text']))), 60, '-<br />'); ?></div>
    <div id="reviewsInfoDefaultDate" class="bold">
    <?php echo sprintf(TEXT_REVIEW_DATE_ADDED, zen_date_short($review_info->fields['date_added'])); ?>&nbsp;<?php $thename = sprintf(TEXT_REVIEW_BY, zen_output_string_protected($review_info->fields['customers_name'])); $idArray=split(" ",$thename);
    $by=$idArray[0];
    $fname=$idArray[1];
    $lname=$idArray[2];
    $lnameuse = substr($lname,0,1); ?>
    <? echo 'by ' . $fname;?> <? echo $lnameuse;?>.
    </div>
    on tlp_dgReview.

    Could anyone help with this one? I need to cut last name off on tlp_dgreview template

  8. #28
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Reviews

    does anyone know what the heck we are supposed to do to the tpl_reviews_default.php?

    I was successful at making all the other pages work, but the main_page=reviews page still shows the full last name.

    The code I have is:
    PHP Code:
    <div class="bold"><?php echo sprintf(TEXT_REVIEW_DATE_ADDEDzen_date_short($reviews->fields['date_added'])); ?>&nbsp;<?php echo sprintf(TEXT_REVIEW_BYzen_output_string_protected($reviews->fields['customers_name'])); ?></div>

  9. #29
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Reviews

    Quote Originally Posted by pricediscrimination View Post
    does anyone know what the heck we are supposed to do to the tpl_reviews_default.php?

    I was successful at making all the other pages work, but the main_page=reviews page still shows the full last name.

    The code I have is:
    PHP Code:
    <div class="bold"><?php echo sprintf(TEXT_REVIEW_DATE_ADDEDzen_date_short($reviews->fields['date_added'])); ?>&nbsp;<?php echo sprintf(TEXT_REVIEW_BYzen_output_string_protected($reviews->fields['customers_name'])); ?></div>
    Not to be obnoxious, but can someone please help me solve this?

  10. #30
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Reviews

    when I try to change this part ($reviews->fields['customers_name']) it messes everything up. What should I change the "customers_name" to so that it wont show the full last name on the reviews main page?

    What's the point of this thread if it doesn't work on the most important reviews page?

 

 
Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 24 Oct 2015, 05:54 AM
  2. Replies: 2
    Last Post: 22 Aug 2011, 09:20 PM
  3. Reviews - uploading pre-written reviews?
    By towerhealth in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 10 Nov 2010, 12:32 PM
  4. Reviews Sidebox - How to add reviews?
    By SpiceGlow in forum Basic Configuration
    Replies: 5
    Last Post: 24 Oct 2009, 05:12 PM
  5. Adding "write reviews" form and reviews to product info display
    By papa smurf in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Dec 2007, 09:13 AM

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