Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function phptemplate_uc_cart_view_form($form) {
- global $user;
- // load all the set variables
- global $conf;
- // we don't seem to use image, so disable
- $conf['uc_cart_view_table_image_enabled'] = FALSE;
- // alter the table column variables for this function
- // if we are a wholesale user
- if (in_array('Wholesale', $user->roles)) {
- $conf['uc_cart_view_table_total_enabled'] = FALSE;
- $conf['uc_cart_view_table_unit_price_enabled'] = FALSE;
- }
- $table = tapir_get_table('uc_cart_view_table', $form);
- return $table;
- }
Add Comment
Please, Sign In to add comment