Magento-how to reply to Customer Comments in magento was published on July 15, August 18, 2012
Agento itself does not include the function of replying to comments. If there is no ready-made extension (free or commercial), you can write it for yourself. It took me one afternoon to finish writing it, I feel good about myself. Just take it out and dry it out.
1.4 and 1.6 are different, and 1.5 is different... I did not solve the problem when I found many resources on the Internet. My colleagues finally remembered how to solve the problem! The following is a normal version of 1.4: the token on csdn replies to comments, and the ready-made extensions (no matter free or commercial) cannot be found. Write it by yourself, it took me one afternoon to finish writing, and I felt good about myself. I took it out and aired it. new fields in the review_detail table of the database
Reply
2. Modify the form. php file, and add the reply text box, APP/code/CORE/MAGE/adminhtml/block/review/edit/form. php line 135.
$ Fieldset-> addfield ('reply', 'textarea ', array ( 'Label' => Mage: helper ('review')->__ ('reply '), 'Requestred' => false, 'Name' => 'reply ', 'Style' => 'height: 24em ;', )); |
3. modify review. PHP file, add the form to obtain fields, APP/code/CORE/MAGE/review/model/mysql4/review. phP 95 rows/*** save detale * // Alex add reply 2009-08-06 */If (! Is_null ($ object-> getreply () {$ reply = $ object-> getreply ();} else {$ reply = ";} $ detail = array (
'Title' => $ object-> gettitle (),
'Detail' => $ object-> getdetail (),
'Nickname' => $ object-> getnickname (),
'Reply' => $ object-> getreply (),
); 4. Modify the list. phtml file and add the reply output. The app/design/frontend/default/eshopstandard/template/review/product/View/list. phtml 56 rows
<P> <? PHP echo nl2br ($ this-> htmlescape ($ _ review-> getdetail ()?> <? PHP echo $ this->__ ('(posted on % s)', $ this-> formatdate ($ _ review-> getcreatedat (), 'long')?> </P>
<? PHP // Alex add reply 2009-08-06?>
<P style = "color: RGB (204, 0, 51);"> <? PHP echo $ this->__ ('reply: ')?> <? PHP echo nl2br ($ this-> htmlescape ($ _ review-> getreply ()?> </P>
For example, the version 1.6 and version 1.5 have the following problems:
1.5 and 1.6 problems: You need to add this:
You also need to modify your app \ design \ frontend \ base \ Default \ template \ reviewform. phtml to add a text for writing and replying to it to hide it because you added it to the background .... (Otherwise, your product comments will report an error .....)
<Input type = "text" name = "reply" id = "summary_field" value = "<? PHP echo $ this-> htmlescape ($ data-> gettitle ()?>" />
1.6 change required:
The file/APP/code/CORE/MAGE/review/model/resource/review. php is in different paths ,. The change methods are the same, and some changes have taken place.
/APP/code/CORE/MAGE/review/model/resource/review/collection. php
When querying: add the reply field. Otherwise, the foreground is not displayed ....
Http://www.magentomax.com/magento-review-reply/
How to reply to Customer Comments in magento