I am trying to modify an existing Magento installation, and also the buyer uses complicated conditions for shopping cart software cost rules, that the built-in
conditions don’t apply.
I basically wish to connect my very own custom php code i.e.
function doesRuleApply() {
//complicated code
if ($someCondition) {
return true; //i.e. apply the rule
} else {
return false; //i.e. don’t apply rule
}
}
I suppose you could do, given a custom module, but I am unsure how to start. Searching in the existing rules, it appears really perplexing.
Can there be any guide or sample available that describes how to begin carrying this out, or can anybody point me within the right direction?
(It might also be ideal to allow them to have the ability to choose this rule within the frontend!)
The post How to develop a custom condition for any shopping cart software cost rule? appeared first on Magento Expert.