Add field to Import Manager?

I know how to manually add a field to the product description, and now I’m curious how to have that field populate via the Import Manager?





Has anyone done this or know how to?

I’m not exactly sure what you are trying to import / export, but I’ll give you an example.



I have the field “cost” in my backend.



To import / export “cost” I did:



In schemas/exim/products.php



After:


'Price' => array (
'table' => 'product_prices',
'db_field' => 'price',
'convert_put' => array ('fn_exim_import_price', '@price_dec_sign_delimiter'),
'process_get' => array ('fn_exim_export_price', '#this', '@price_dec_sign_delimiter'),
),




I added:


'Cost' => array (
'db_field' => 'cost',
'convert_put' => array ('fn_exim_import_price', '@price_dec_sign_delimiter'),
'process_get' => array ('fn_exim_export_price', '#this', '@price_dec_sign_delimiter'),
),




Of course you might need something slightly different, but this should get you started.



Brandon

[quote name=‘brandonvd’]

I have the field “cost” in my backend.[/QUOTE]



Brandon - do you use your “cost” field to somehow track profit margin? I’m curious to know how CS-Cart users track profit.



thanks,

Glen

Glen,



No, the cost field is just for my reference. I use it to be able to quickly calculate my profit.



I don’t know how CS-Cart does their calculations. On the homepage of the admin it has the figures, but they don’t seem that accurate to me.



Brandon