Zen Cart Logo
Forums / General Questions / Is There A Way To NOT Show Dates On Product Reviews?

Is There A Way To NOT Show Dates On Product Reviews?

Views: 628

Results 1 to 6 of 6
16 Sep 2013, 8:31 PM
#1
scully avatar

scully

Zen Follower

Join Date:
Dec 2010
Posts:
257
Plugin Contributions:
0

Is There A Way To NOT Show Dates On Product Reviews?

How do I turn off the Date Added on the product reviews? Thanks!

16 Sep 2013, 9:51 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Is There A Way To NOT Show Dates On Product Reviews?

admin > catalog > product types > select general > at the right select "edit layout"

Find Show Date Added and set to "false"

16 Sep 2013, 10:01 PM
#3
scully avatar

scully

Zen Follower

Join Date:
Dec 2010
Posts:
257
Plugin Contributions:
0

Re: Is There A Way To NOT Show Dates On Product Reviews?

No, I already did that, and it didn't work. :(

Product Type Info Page Layout options :: Product - General
Title Value Action
Show Model Number 0
Show Weight 0
Show Attribute Weight 0
Show Manufacturer 1
Show Quantity in Shopping Cart 1
Show Quantity in Stock 0
Show Product Reviews Count 1
Show Product Reviews Button 1
Show Date Available 0
Show Date Added 0
Show Product URL 1

What I want is to remove the date that the review is added.

16 Sep 2013, 10:28 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Is There A Way To NOT Show Dates On Product Reviews?

Edit copies of these template files
tpl_reviews_default.php

Find this entry and remove red highlighted code

<div class="bold"><?php echo sprintf(TEXT_REVIEW_DATE_ADDED, zen_date_short($reviews->fields['date_added'])); ?> <?php echo sprintf(TEXT_REVIEW_BY, zen_output_string_protected($reviews->fields['customers_name'])); ?></div>

tpl_product_reviews_default.php

Find this code block and remove red highlighted code

<div class="productReviewsDefaultReviewer bold"><?php echo sprintf(TEXT_REVIEW_DATE_ADDED, zen_date_short($reviews['dateAdded'])); ?> <?php echo sprintf(TEXT_REVIEW_BY, zen_output_string_protected($reviews['customersName'])); ?></div>

Save and upload to your template structure

16 Sep 2013, 10:38 PM
#5
scully avatar

scully

Zen Follower

Join Date:
Dec 2010
Posts:
257
Plugin Contributions:
0

Re: Is There A Way To NOT Show Dates On Product Reviews?

Modifying the raw php always scares the spit out of me...but this was a simple fix. THANK YOU!! :D

16 Sep 2013, 10:40 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Is There A Way To NOT Show Dates On Product Reviews?

Glad it helped - Sorry I missed "reviews" on first look