Skip to content

Instantly share code, notes, and snippets.

@webmasterkai
Created November 13, 2012 21:10
Show Gist options
  • Save webmasterkai/4068424 to your computer and use it in GitHub Desktop.
Save webmasterkai/4068424 to your computer and use it in GitHub Desktop.
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'];
- }
- elseif (empty($affiliate_id)) {
+// HACK: We're not using product affiliate, commenting this out
+// if (isset($product->data['affiliate'])) {
+// $aff = $product->data['affiliate'];
+// }
+ if (empty($affiliate_id)) {
continue;
}
else {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment