Traprock Posted September 30, 2016 Share Posted September 30, 2016 Hi, has anyone manage to configure a working affiliate link for product bundles? Product links eg. [path to whmcs/*?aff=18&pid=20] work fine But [path to whmcs/*?aff=18&bid=2] redirects to home page Maybe bundles can't have affiliate links? Any advice appreciated. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted September 30, 2016 Share Posted September 30, 2016 it's not supported by default, but you can modify * file to enable this option, add the following line #29: if ($gid = $whmcs->get_req_var('gid')) redir("gid=".(int)$gid,"cart.php"); add this lines: // if product Bundle id passed in, redirect to order form if ($bid = $whmcs->get_req_var('bid')) redir("a=add&bid=".(int)$bid,"cart.php"); 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 30, 2016 Share Posted September 30, 2016 https://forum.whmcs.com/showthread.php?113178-Affiliate-code-into-a-package-link&p=459687#post459687 Regrettably, affiliate links cannot currently be used with bundle links. the link to the product bundle should still work, but no affiliate details would be automatically assigned to the order - what you would need to do is manually assign the order to the appropriate affiliate. previously, you could add the code below to * and it would work - but i'm not sure it still does with v6 (and I assume v7) // if product bundle id passed in, redirect to product group if ($bid = $whmcs->get_req_var('bid')) redir("a=add&bid=".(int)$bid,"cart.php"); 0 Quote Link to comment Share on other sites More sharing options...
Traprock Posted September 30, 2016 Author Share Posted September 30, 2016 sentq and brian! Thanks very much guys, I will give it a go. Very appreciated. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.