sub view { my $self = shift; $stats->write( 'product_view', 1, { id => $self->id, category => $self->category } ); }