Hi, I am one of the many people who want to use CSVI pro for exporting VM products & prices to Amazon. I have got a working template except for 2 custom header rows that Amazon requires you to put in.
Is there a way to insert these rows before the CSVI output (see screendump for example)?
I can do it manually in Excel or Open Office (paste the CSVI output under the Amazon header rows) and then it works, but I want to automate this process.
Hello,
Is there a way to insert these rows before the CSVI output (see screendump for example)?
The only way would be to add it to the product export file (administrator\components\com_csvi\models\com_virtuemart\export\productexport.php.
You would need to add the code:
$header = "TemplateType....\r\nLagerhalt.....";
$this->addExportContent($header)
This goes before the line
$linenumber = 1;
You can put this in an override, so you are not changing the original file.
I haven't tested this but believe this should work.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Thanks, but then I would make it a permanent change, right? This means I cannot use CVSI anymore for other uploads like e.g. Ebay or Google Base.
I guess the other method is to run a server side script that appends the CVSI output to a standard Amazon header file.
No worries, we'll get it done ;-)
Thanks, but then I would make it a permanent change, right?
Sort of, if you check for which template is being used you can make it flexible. The $template->getName(); will get you the name of the template.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Log in to reply to this topic.