Discount module spryker on saving gives error "forbidden"
we customized the discount module and storing the condition in a column . everything working fine on local when we save form with condition (rule column) but on server while saving the form with condition gives "forbidden error". Just didn't get it why , I already spend considerable time on this. please help if someone familiar with this error or faced this in person.
Best Answer
-
its was an issue of firewall and resolved by spryker!
1
Answers
-
Hi @mohammed.shamim ,
As per the error message, it seems that server might be having some firewall settings which doesn't allow to save it. Please check the same.
Thanks1 -
Thanks, But I have other form also that working fine on server. what so special for this that need firwall setting to be changed!? why same thing not happen in other form. ? that what i m tried to get.
0 -
@mohammed.shamim Sometimes, it happens that all things work correctly locally but in server it doesn't work due to some issues. And firewall can also be one of the reason based on my experience . Is there any specific error getting logged while submitting the form ? If not, put the breakpoint in the code to debug it using XDebug. It might help you if the issue is in the code. You can also check the permissions of the backoffice user using which you're trying to save the form.
1 -
Hi,
We are also using spryker paas, from the last 1 month we have been facing this kind of random issue. Whenever we save/update any discount, we are getting 403 issue intermittently. This is not replicable on local environment.
1 -
Yes, same issue but its sort of permanent . I attached two screen shot. When ever i tried to add a condition and a saved it , it throw error like '403 forbidden.' although without adding any condition it works fine . on local its work fine even with condition. This issue persist so long perm ant not intermittently at my end.
0 -
Did you try adding the currency in the condition tab with SKU? We faced similar issue with Grand Total condition.
0 -
At my end, we not have currency option. please see the screen shot for option detail.
0 -
Can you please post the screenshots of all the tabs?
0 -
0
-
above screen shot contain all tabs for discount module!
0 -
My observation so far is related to condition tab. Add conditions for example -
currency
Grandtotal
and try to save it, it may fail, change the price try again. I got this error many times andalways changing the conditions solves the issue. Once it is saved, you can upadate the condition as desired.
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,057 ⚖️ - Guardians (admin)
Heyhey,
does the problem still exist?
All the best,
Florian
0 -
its was an issue of firewall and resolved by spryker!
1
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 69 Spryker News
- 899 Developer Corner
- 760 Spryker Development
- 83 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 24 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 68 Spryker Safari Questions
- 50 Random