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)

CommentFileSizeAuthor
role_discount_0.patch462 bytesBarry Pretsell

Comments

gordon’s picture

Status: Active » Fixed

fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)