'@type' => 'Product',
name => $data{title},
image => "/static/fullpics/$data{product}-1.jpg",
- description => $data{summary},
+ description => $data{subtitle},
offers => {
'@type' => 'Offer',
price => ($data{price} =~ s/(..)$/\.$1/r),
my $req = Plack::Request->new($env);
local %highlight = map { $_ => 1 } $req->param('highlight');
- my $data = $db{$$}->select(products => '*', {}, 'product')->hashes;
+ my $data = $db{$$}->select(products => '*', {stock => {'>', 0}}, 'product')->hashes;
my $tree = $form->clone;
$tree->find('tbody')->find('tr')->iter3($data, \&form_table_row);