Mr_Green
Mr_Green

Reputation: 41842

Review form is not being submitted

In my project, I added a new field location in "product reviews" of admin panel going through the following steps as explained in many blogs.

Just above:

    $fieldset->addField('nickname', 'text', array(
        'label'     => Mage::helper('review')->__('Nickname'),
        'required'  => true,
        'name'      => 'nickname'
    ));

My problem is that though I can see a new field in admin panel, whenever I submit a review form it is not being submitted/stored in database.

I even re-indexed and cleared the cache.

What should I change more to make it work properly?

Please help... I am on magento 1.8.

PS: I know core files should not be changed. I will override this to new module once I have success in this issue.

Upvotes: 4

Views: 1411

Answers (3)

ROBIN
ROBIN

Reputation: 502

Try this, take db backup first. Delete entry of table from core_resource table and load the site.. In short try to recreate the db table with your column 'location'. I don't know ,what is wrong with setters when we add new field in varien forms they didn't work properly.

I hope this will work.

Upvotes: 0

Deependra Singh
Deependra Singh

Reputation: 1514

I did follow exact steps explained in quetion. And find it working properly.

Only issue I faced was that in {$mytheme}/template/review/form.phtml

You have defined name="nickname" for location field instead of name="location"

Correct this and if you still face same issue than then check if Module Classes as being overridden.

Upvotes: 2

Charma
Charma

Reputation: 1107

Have a look at the html code created in the browser. Check for:

  • is your field included within -tags?
  • is the action type and target set correctly?
  • with a browser console of your choice (e.g. chrome F12) ensure that fields are correctly set and the form is really sent.

Upvotes: 0

Related Questions