Skip to content

Instantly share code, notes, and snippets.

View webmasterkai's full-sized avatar
🎯
Focusing

Kai Curry webmasterkai

🎯
Focusing
View GitHub Profile
@webmasterkai
webmasterkai / uc_affiliate2.module
Created November 13, 2012 21:10
uc_affiliate2 hack
diff --git a/sites/all/modules/uc_affiliate2/uc_affiliate2.module b/sites/all/modules/uc_affiliate2/uc_affiliate2.module
index 192d1618d3958e00f8be275dd5ba1a363785c6f2..87e3e41a84fee472c9759702424572a6d9b1e401 100644
--- a/sites/all/modules/uc_affiliate2/uc_affiliate2.module
+++ b/sites/all/modules/uc_affiliate2/uc_affiliate2.module
@@ -712,10 +712,11 @@ function uc_affiliate2_apply_commission($order, $affiliate_id = NULL) {
$context['subject']['node'] = node_load($product->nid);
$price = uc_price($price_info, $context);
- if (isset($product->data['affiliate'])) {
- $aff = $product->data['affiliate'];