Open Zeromax opened 10 years ago
Well, basically all the rules do internally is using the $GLOBALS['ISO_HOOKS']['calculatePrice']
hook so you can do the very same, can't you?
Thats possible, but totaly uncomely ;)
So your idea means the following:
Or am I missing something?
No, you should not use rules but calculate everything on your own...
@aschempp really?
It would be also an option to have a hook before a Rule is used with a boolean return value for using. This hook could take place in this method: https://github.com/isotope/core/blob/master/system/modules/isotope_rules/library/Isotope/Rules.php#L81
Is it possible to add a hook to manipulate the
findByConditions
method?in this line: https://github.com/isotope/core/blob/master/system/modules/isotope_rules/library/Isotope/Model/Rule.php#L118
There is no way to take influence to the conditions of the rules without writing it in that method directly. Or am I missing something?
Reason why I need this: I have added a custom field to the
tl_iso_rules
table and can not use the conditions which I set there.