-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rule conditions not working #104
Comments
Thanks for raising this- exactly the problem I've been having. Unfortunately it looks like this library hasn't been updated in a while. |
The same is true for Sku conditions. To summarize, the |
Can this please be fixed? It's as simple as @flyingL123 suggests - remove the |
Hey all, We appreciate the feedback on our clients and our looking to make improvements. In the meantime, we welcome anyone that wishes to open their own pull request to improve the clients. |
For anyone else coming across this issue, which still exists, even though there are a couple of pull requests for it ( #213 & #167 ), if you want to work around it without editing the library itself, you can add the following code to sort of cast the Rule object into a Resource object, at which point, you can access I'm leaving my own comments here so you understand this is cowboy code:
|
I don't think that the conditions() function is needed anymore with the Rules resource. This is because the conditions are now returned as an array on the rule object. However, currently if you try to retrieve these conditions from a rule, it breaks because this method is in the code.
Commenting out lines 1125-1132 in the bigcommerce.php file fixes the problem, so I'm thinking this means that method should be removed.
The text was updated successfully, but these errors were encountered: