hopefully nobody else has already posted this...
In store/admin/customers.php
the following conditional, around line 880:
the 'true' and 'false' lines are flip-flopped, so that when you go look at a customer's group pricing (say, if you want to change it in admin), the drop-down menu shows, "GROUP_PRICE_PER_ITEM_TEXT" instead of the percentage if it exists.Code:if(in_array($group_array_query->fields['group_name'], array(GROUP_PRICE_PER_ITEM1, GROUP_PRICE_PER_ITEM2, GROUP_PRICE_PER_ITEM3, GROUP_PRICE_PER_ITEM4))) { $group_array[] = array('id' => $group_array_query->fields['group_id'], 'text' => $group_array_query->fields['group_name'] . ' ' . GROUP_PRICE_PER_ITEM_TEXT); } else { $group_array[] = array('id' => $group_array_query->fields['group_id'], 'text' => $group_array_query->fields['group_name'].' '.$group_array_query->fields['group_percentage'].'%'); }
the conditional should instead read as follows:
you might also want to declare a define for GROUP_PRICE_PER_ITEM_TEXT, the mod as it is, I don't think it adds that define in the appropriate file (english.php?).Code:if(in_array($group_array_query->fields['group_name'], array(GROUP_PRICE_PER_ITEM1, GROUP_PRICE_PER_ITEM2, GROUP_PRICE_PER_ITEM3, GROUP_PRICE_PER_ITEM4))) { $group_array[] = array('id' => $group_array_query->fields['group_id'], 'text' => $group_array_query->fields['group_name'].' '.$group_array_query->fields['group_percentage'].'%'); } else { $group_array[] = array('id' => $group_array_query->fields['group_id'], 'text' => $group_array_query->fields['group_name'] . ' ' . GROUP_PRICE_PER_ITEM_TEXT); }



