Forum OpenACS Q&A: Response to can't delete a record in ec_custom_product_field_values

You need an if statement that looks something like:

if TG_OP = ''delete'' then
   return old;
else
   return new;
end if;