Guest User

Untitled

a guest
Jun 22nd, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. function phptemplate_uc_cart_view_form($form) {
  2. global $user;
  3. // load all the set variables
  4. global $conf;
  5. // we don't seem to use image, so disable
  6. $conf['uc_cart_view_table_image_enabled'] = FALSE;
  7. // alter the table column variables for this function
  8. // if we are a wholesale user
  9. if (in_array('Wholesale', $user->roles)) {
  10. $conf['uc_cart_view_table_total_enabled'] = FALSE;
  11. $conf['uc_cart_view_table_unit_price_enabled'] = FALSE;
  12. }
  13. $table = tapir_get_table('uc_cart_view_table', $form);
  14. return $table;
  15. }
Add Comment
Please, Sign In to add comment