1. visability
  2. RO CSVI
  3. Wednesday, 15 February 2017
  4.  Subscribe via email
I am using CSVI Pro 7.0.2 to export virtuyemart products to xml. The file needs to include an export created date like below:

<ExportCreated>2017-02-14T16:30:10-06:00</ExportCreated>

How can I get CSVI to insert the current date and time in the file within the XML layout?
Accepted Answer Pending Moderation
Hello,
You can create your own export XML handler in the folder administrator/components/com_csvi/helper/file/export/xml. Add your own XML file with code to show current date and time. You can take csvimproved.php file in the same folder as an example, make a duplicate of it, rename the file and edit it as per your need. Also make sure that you change the class CsviHelperFileExportXmlCsvimproved to class CsviHelperFileExportXmlxxxxxxx, where xxxxxxx is the name of your new file. This file will then show up when you choose XML as export type in your template settings on File tab and your export XML should have the date and time as per your changes.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!