<% my $description = ''; my $keywords = ''; if ($VAR::current_item{sku}) { $description = "$VAR::current_item{brand} $VAR::current_item{model}"; $keywords = "$VAR::current_item{brand} $VAR::current_item{model} $VAR::current_item{keywords} $VAR::current_item{sku}"; } elsif ($VAR::current_cat{id}) { # Note home is 0, show default title $description = "$VAR::current_cat{name} $VAR::current_cat{description}"; $keywords = "$VAR::current_cat{name} $VAR::current_cat{description}"; } else { $description = $VAR::site_name; $keywords = $VAR::site_name; } $description = htmlencode($description); $keywords = htmlencode($keywords); print qq~ ~; %>