My client wants people to select which newletter/group they belong to when they subscribe / create an account. Since I made my "pricing" groups into newsletter groups also, I needed subscribers to choose which group they belong to. I realize this would not suit most stores...but here's what I came up with for our site in case anyone would like to know.
in includes/languages/engligh.php I added around line 265
in includes/templates/my_template/templates/tpl_modules_create_account.php I added around line 184:PHP Code:define('ENTRY_PRICING_GROUP', 'Newsletter group');
define('TEXT_NONE', 'Select');
PHP Code:<?php
echo ENTRY_PRICING_GROUP;
$group_array_query = $db->execute("select group_id, group_name, group_percentage from " . TABLE_GROUP_PRICING);
$group_array[] = array('id'=>0, 'text'=>TEXT_NONE);
while (!$group_array_query->EOF) {
$group_array[] = array('id'=>$group_array_query->fields['group_id'], 'text'=>$group_array_query->fields['group_name'].' '.$group_array_query->fields['group_percentage'].'%');
$group_array_query->MoveNext();
}
echo zen_draw_pull_down_menu('customers_group_pricing', $group_array, $cInfo->customers_group_pricing);
?>
<br class="clearBoth" />
</fieldset>
MC




