Discounts did not seem to be applied to my cart.
I looked at role_discount.module and there appears to be a discrepancy between the number of arguments and that of the calling function
In role_discount.module the function is defined as
function role_discount_product_specials($node, $specials, $txn = NULL)
whereas the calling code product.module function product_get_specials calls this function as
module_invoke($name, 'product_specials', $node, $specials, $type, $txn))
hence the problem is that the role_discount.module omits the $type parameter.
It worked once I added the missing parameter to the role_discount.module thus
function role_discount_product_specials($node, $specials, $type, $txn = NULL)
| Comment | File | Size | Author |
|---|---|---|---|
| role_discount_0.patch | 462 bytes | Barry Pretsell |
Comments
Comment #1
gordon commentedfixed.
Comment #2
(not verified) commented