I understand from reading around that you cannot use $this in template file now.
So I have read quite a few posts and worked out that I think I need to define the $data['customer_group_id'] in the footer controller.
catalog/controller/common/footer.php
Code: Select all
if ($this->customer->isLogged()) {
$data['customer_group_id'] = $this->customer->getGroupId();
} else {
$data['customer_group_id'] = $this->config->get('config_customer_group_id');
}
Code: Select all
if ($data['customer_group_id'] == 0) {
// default customer
} else {
// wholesale customer
}
Sorry I am such a newb round here - making the leap from osCommerce is proving a bit of a shock to the system!