IF select file_ref_id from <@PREFIX@>hikashop_file where <@UPLIMAGES@> = 1 limit 1
@@GO@@
select file_ref_id from <@PREFIX@>hikashop_file limit 1
@@GO@@
insert into <@PREFIX@>hikashop_file
(file_name,file_description,file_path,file_type,file_ref_id,file_free_download ,file_ordering,file_limit)
values
( '<@DEST@>',
'<@SDESCRIPTION@>',
'<@DEST@>',
'product',
<@KEY@>,
0,
<@SGROUP@>,
0
)
@@GO@@