{include file='./../parts/import_steps.tpl' step=3}

 

{include file='./../parts/config.tpl'}
{l s='Highlight syntax' mod='pshowimporter'} {l s='Load file' mod='pshowimporter'} [[fileloadstatus]] ({l s='grab to move' mod='pshowimporter'})    {l s='File contents' mod='pshowimporter'}
{**}
[[filecontents]]

{l s='You can match two or more the same fields to merge data. ' mod='pshowimporter'}

{l s='For example select twice \'product name\' and check \'merge\' field to merge two file fields into product name.' mod='pshowimporter'}

{l s='First column values from CSV file' mod='pshowimporter'}
{l s='PrestaShop field' mod='pshowimporter'}
{l s='Merge the same fields' mod='pshowimporter'}
{l s='Prepend' mod='pshowimporter'}
{l s='Append' mod='pshowimporter'}
{l s='Cut from start' mod='pshowimporter'}
{l s='Cut from end' mod='pshowimporter'}
{assign var='number' value=1} {assign var='fieldId' value=0} {foreach from=reset($rows) key='k' item='own'} {assign var='number' value=($number+1)} {assign var='fieldId' value=($fieldId+1)} {/foreach}
{$own} {include file="../helpers/config_matchxml_dbfield.tpl" fieldId=$number matched=$matched attr='own' elem="own"|cat:$number db_tables=$db_tables val=($matched_fields[$number][0]|cat:'.'|cat:$matched_fields[$number][1])}