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!
Views: 628
Zen Follower
How do I turn off the Date Added on the product reviews? Thanks!
Black Belt
admin > catalog > product types > select general > at the right select "edit layout"
Find Show Date Added and set to "false"
Zen Follower
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.
Black Belt
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
Zen Follower
Modifying the raw php always scares the spit out of me...but this was a simple fix. THANK YOU!! :D
Black Belt
Glad it helped - Sorry I missed "reviews" on first look
Tell staff why this post should be reviewed.