1. kostas7
  2. RO CSVI
  3. Tuesday, 14 June 2016
  4.  Subscribe via email
Hello,
Is it possible to import categories from XML file to Virtuemart using the id instead the category name?

<category id="1">PC</category>
Thanks.
Best Regards
Kostas
Accepted Answer Pending Moderation
Hello Kostas,

I will use the same id for categories (from an export) that the system uses.
You just have to make sure that all cross-references in the system are OK as well. You can't just import and ID and that's it.

Also, you cannot use the ID value for new categories, only for existing ones.

Since this looks like an XML file, you need to use the path category/id. To be sure use the Analyzer in CSVI to get the correct path. The analyzer will tell you the path to use to get to that field.
Kind regards,

RolandD

=========================
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
Accepted Answer Pending Moderation
Hello Roland,
I will use the same id for categories (from an export) that the system uses.
I want to change some category paths.
The problem is that I don't know how to map an import template field with the category id from
<category id="1">PC</category>
Can you help?
Thanks.
Best Regards.
Kostas
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello Kostas,

Categories should be imported based on the category_path. The IDs are controlled by the database, it is highly discouraged to manage the IDs yourself as they are used throughout the system.
Kind regards,

RolandD

=========================
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. # 3
  • Page :
  • 1


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