1

My task is to add new shopping cart price rule in magento admin section. I have added rule information, then I need to add conditions for that rule .When I change the condition select box option, it's redirected to dashboard.

In the chrome console it shows 403 forbidden error in the ajax url.

Somebody told me to disable mod_security. I have written the below code in .htaceess file, but still the problem continues.

.htacesss :

SecFilterEngine Off

SecFilterScanPOST Off

I am using Magento version. 1.9.3.8

How to fix this please help me.

  • are you getting any error log ? in system.log or exception.log ? – Dhaval Solanki Aug 1 '18 at 11:05
  • no i didn't got any error – Jenith Samuel Aug 1 '18 at 11:21
1

Modified a single line in rule.js file. (path : /var/www/vhosts/site.com/htdocsnew/js/mage/adminhtml/rule.js)

Old

{form_key: FORM_KEY, type:new_type.replace('/','-'), id: new_id }

New

{form_key: FORM_KEY, type:new_type.replace('/','-'), id:"'"+new_id+"'" }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.