Forums / General Questions / Can't Delete customer review

Can't Delete customer review

Views: 1,558

Results 1 to 8 of 8
22 Oct 2010, 11:13 AM
#1
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Can't Delete customer review

I have a customer product review i want to delete.

Theye have left me a company testimonial instead or a product review and i want to delete the review. Informed the customer and they have now posted testimonial in the correct plce.

Problem i have is i cant delete the review. I have turned it off but when i click delete i get the delete option again to clarify that i reaslly want to delete so i click delete again and it looks like it been deleted... but then back on admin home i have one pending review and low and behold its the review i just deleted... any ideas??


22 Jan 2011, 6:31 PM
#2
largomike1 avatar

largomike1

New Zenner

Join Date:
Apr 2009
Posts:
25
Plugin Contributions:
0

Re: Can't Delete customer review

I'm having the same problem. I guess no one has a solution for this. I'm going to attempt to fix it. I'll let you know if I come up with a fix. Anyone else out there have a fix for this?

22 Jan 2011, 6:39 PM
#3
largomike1 avatar

largomike1

New Zenner

Join Date:
Apr 2009
Posts:
25
Plugin Contributions:
0

Re: Can't Delete customer review

OK, I found a work-around. Looks like you can't delete reviews when they are filtered to 'Pending Reviews'. You can delete them when they are not filtered. Here's how to do it.

1 - In your administration panel, click on Catalog, then Reviews
2- Look through all of the reviews and find the one you want to delete, then click on the row for that review.
3- Now click the Delete button.
4- Now you should be prompted with "Are you sure you want to delete this review?" and under that question should be the name of the product review to be deleted. Click on the Delete button.
5- Now your review should be deleted.

The problem is that for some reason, when you click on the delete button when reviews are filtered, the id for the review gets lost. So when you click on the delete button the second time, it doesn't know what review to delete. Hope this helps!

23 Jan 2011, 4:09 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Can't Delete customer review

What version of Zen Cart are you running?

So far, I cannot reproduce this issue in v1.3.9h ...

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

27 Jan 2011, 1:36 PM
#5
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: Can't Delete customer review

1.3.9h

thanks largomike that worked!!


22 Aug 2011, 8:16 PM
#6
drbyday avatar

drbyday

New Zenner

Join Date:
Mar 2008
Posts:
50
Plugin Contributions:
0

Re: Can't Delete customer review

I am getting the same issue. 1.3.9h. Any ideas? maybe its a setting? Iam in https in the admin?

22 Aug 2011, 8:44 PM
#7
drbyday avatar

drbyday

New Zenner

Join Date:
Mar 2008
Posts:
50
Plugin Contributions:
0

Re: Can't Delete customer review

Think I found a solution:

I wanted to able to delete reviews while still having them sorted by "pending", which wasn't working.

So in reviews.php

FIND (around line 358):

 $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a> ' . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . zen_get_products_category_id($rInfo->products_id) . '&pID=' . $rInfo->products_id) . '">' . zen_image_button('button_details.gif', IMAGE_DETAILS) . '</a>');

REPLACE WITH

 $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=delete&status=' . $_GET['status']) .  '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a> ' . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . zen_get_products_category_id($rInfo->products_id) . '&pID=' . $rInfo->products_id) . '">' . zen_image_button('button_details.gif', IMAGE_DETAILS) . '</a>');

I just added:

&status=' . $_GET['status']) . ' to the delete button so that it would remember what sort you had applied.

27 May 2012, 12:44 PM
#8
abcisme avatar

abcisme

Zen Follower

Join Date:
Jun 2006
Posts:
298
Plugin Contributions:
0

Re: Can't Delete customer review

drbyday:

Think I found a solution:

I wanted to able to delete reviews while still having them sorted by "pending", which wasn't working.

So in reviews.php

FIND (around line 358):

$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a> ' . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . zen_get_products_category_id($rInfo->products_id) . '&pID=' . $rInfo->products_id) . '">' . zen_image_button('button_details.gif', IMAGE_DETAILS) . '</a>');

> 
> REPLACE WITH
> 
> ```php
 $contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=delete&status=' . $_GET['status']) .  '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a> ' . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . zen_get_products_category_id($rInfo->products_id) . '&pID=' . $rInfo->products_id) . '">' . zen_image_button('button_details.gif', IMAGE_DETAILS) . '</a>');

I just added:

&status=' . $_GET['status']) . ' to the delete button so that it would remember what sort you had applied.

Thank you for this fix. Works perfectly for me. :)