Discount Requirement Not Saving Properly To Settings

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hello,
I've ran into an issue that might be a bug, but I want to ensure it isn't something on my end. I've created a discount requirement plugin for shipping methods that works for the most part. The problem I'm facing is when I use it alongside another discount requirement, the value for the StoreId column doesn't update in the Settings table. The only way I'm able to get it to save is to refresh the page and click Save one more time, then it finally saves in the database.

I'm using nopCommerce 3.9.

Thank you for your help!
5 years ago
I've realized what my issue is. In the source code of my plugin I am checking for other discount requirements using their DiscountRequirementRuleSystemName value. In doing so, I'm comparing to the lowercase value of "discountrequirement.store" or whatever it may be. I just realized I forgot to add ".ToLower()" to properly compare the two items together and after adding this the StoreId column is now updating with the rest of the setting. This issue can be considered resolved.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.