mahmoodee
Member
Hello,
I have used J2store form plugin to create products .
I want create products when import csv to list , so I add this code to ./components/models/importcsv.php to run j2store form plugin when import csv
But it work only for the last row in CSV .
It is creating product only for the last row , so how I can run form plugin for each CSV row , not only for last row .
thank you
I have used J2store form plugin to create products .
I want create products when import csv to list , so I add this code to ./components/models/importcsv.php to run j2store form plugin when import csv
Code:
FabrikWorker::getPluginManager()->runPlugins('onAfterProcess', $formModel, 'form');
It is creating product only for the last row , so how I can run form plugin for each CSV row , not only for last row .
thank you