Quote Originally Posted by madfastride View Post
Matt, Which one do you want to do? You could modify the wording of "Whole Sale Price:" to something more suitable on line 94 of includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php

The other method would be to add another check for a whole sale customer and display a notice in the header. This would probably happen in your includes/header.php file or your could use the messageStack feature built into Zencart (gives a notice like when you forget to delete your install directory).

The code to check for a wholesale customer looks like this. You can change your template to display a notice anywhere you want using this in any file you chose.

PHP Code:
if ($_SESSION['customer_id']) {
  
$customers_id $_SESSION['customer_id'];
    
$customer_check $db->Execute("select * from " TABLE_CUSTOMERS " where customers_id = '$customers_id'");
 if (
$customer_check->fields['customers_whole'] != "0") { 
    
CODE YOU WANT TO USE IF CUSTOMER IS WHOLE SALE


 
}

I can't get this code to work. Tried inserting it in tpl_product_info_display to simply output a message -- echo("you are wholesale!"); in place of "CODE YOU WANT..." and it breaks the page.

It should work anywhere in the code right? Anyone get this to work?