OpenCart, straight out of the box, helpfully records products viewed. /catalog/model/catalog/product.php called from catalog/controller/product/product.php public function updateViewed($product_id) { $this->db->query(“UPDATE ”...