public function getProduct($id) { //do this again right here since it can be used for combining the cart. We want to make sure it's fresh. $this->customer = \GC::getCustomer(); //find the product $product = CI::db()->select('*, saleprice_' . $this->customer->group_id . ' as saleprice, price_' . $this->customer->group_id . ' as price')->where('id', $id)->where('enabled_' . $this->customer->group_id, '1')->get('products')->row(); $product = $this->processImageDecoding($product); return $product; }