Add support for customizable affiliate URL schemes

jjeff - October 25, 2009 - 21:50
Project:Ubercart Affiliate v2
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

This patch allows for site administrators to change the affiliate links from the current affiliate/[uid] scheme to [anything]/[uid].

The patch simply adds variable_get('uc_affiliate2_path', 'affiliate'); anywhere this menu item is defined or referred to. This allows the site administrator to change this variable in the settings.php file by adding a line similar to the following:

<?php
$conf
['uc_affiliate2_path'] = 'my_affiliate_path';
?>

There is not currently an interface to change this path. This is somewhat intentional because you wouldn't want an administrator to change this accidentally and destroy all of the current incoming links to a site.

AttachmentSize
uc_affiliate2_config_menu.patch3.06 KB

#1

bojanz - October 27, 2009 - 21:38

What can I say? You rock.

I will have this integrated as soon as possible.

#2

univate - November 6, 2009 - 01:55

+1 this feature would be really handy.

The code in the patch looks good to me.

 
 

Drupal is a registered trademark of Dries Buytaert.