Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Jun 2006
    Location
    Taos,NM
    Posts
    320
    Plugin Contributions
    0

    Default Product Reviews: Removing "Date Added"

    I've search the forum and with the aid of the developers tool kit, I found a file:

    includes/modules/pages/product_reviews/header.php

    in there is a block:

    while (!$reviews->EOF) {
    $reviewsArray[] = array('id'=>$reviews->fields['reviews_id'],
    'customersName'=>$reviews->fields['customers_name'],
    'dateAdded'=>$reviews->fields['date_added'],
    'reviewsText'=>$reviews->fields['reviews_text'],
    'reviewsRating'=>$reviews->fields['reviews_rating']);
    $reviews->MoveNext();

    wherein the 'dateAdded.... was what I thought the pertinent code. I commented that out - to no avail.

    Are there additional steps I need to take. I have a lot of comments emailed to me that I need to either backdate, or not have any date at all.

    Thanks,
    Laura

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Product Reviews: Removing "Date Added"

    In everything one should first exhaust the possibilities in the admin instead of turning directly to the code.

    In the admin > catalog > product types > select layout > Show Date Added and set to false
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jun 2006
    Location
    Taos,NM
    Posts
    320
    Plugin Contributions
    0

    Default Re: Product Reviews: Removing "Date Added"

    I did do that - that switch refers to the date the product was added, not the date the review was added.

    Any other suggestions?

    ~L

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Product Reviews: Removing "Date Added"

    My Error...I didn't read your post closely enough as you did specify.

    Will check this and get back, or another will.
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Product Reviews: Removing "Date Added"

    You are trying to get too "deep" in the code ...

    Go to the template level ...

    /includes/templates/template_default/templates/tpl_product_review_info_default.php

    Copy to your template and overrides directory ...

    Find the line near the bottom for:
    PHP Code:
    <div id="reviewsInfoDefaultDate" class="bold"><?php echo sprintf(TEXT_REVIEW_DATE_ADDEDzen_date_short($review_info->fields['date_added'])); ?>&nbsp;<?php echo sprintf(TEXT_REVIEW_BYzen_output_string_protected($review_info->fields['customers_name'])); ?></div>
    You can comment out the date just by changing this to read:
    PHP Code:
    <div id="reviewsInfoDefaultDate" class="bold"><?php // echo sprintf(TEXT_REVIEW_DATE_ADDED, zen_date_short($review_info->fields['date_added'])); ?>&nbsp;<?php echo sprintf(TEXT_REVIEW_BYzen_output_string_protected($review_info->fields['customers_name'])); ?></div>
    Notice the two little forward slashes that I added ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Product Reviews: Removing "Date Added"

    Note: there are several pages to the reviews ... that also will need a tweek ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Jan 2011
    Posts
    15
    Plugin Contributions
    0

    Default Re: Product Reviews: Removing "Date Added"

    Quote Originally Posted by Ajeh View Post
    Note: there are several pages to the reviews ... that also will need a tweek ...
    Can you tell me where each is located. Thanks a million.

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Product Reviews: Removing "Date Added"

    Go to the Tools ... Developers Tool Kit ... and do a search on:
    review

    and select Catalog ... then click Search ... and you should locate all pages for the reviews ...

    This will show all references to that, among other things ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #9
    Join Date
    Jan 2011
    Posts
    15
    Plugin Contributions
    0

    Default Re: Product Reviews: Removing "Date Added"

    Well do, thank again.

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Product Reviews: Removing "Date Added"

    Once you review that, you can also narrow things down on a search for:
    TEXT_REVIEW_DATE_ADDED
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Replacing "Filter Results by ABC" with "Sort by: Price, Date added"
    By vandiermen in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Aug 2010, 09:18 AM
  2. Help removing "date-text-added" from pg
    By melindaf in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 1 Aug 2009, 07:38 AM
  3. "This Product was added to our Catalog" -- change date format?
    By chris32882 in forum General Questions
    Replies: 7
    Last Post: 25 Oct 2008, 12:27 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