1. webstar
  2. RO CSVI
  3. Friday, 02 May 2025
  4.  Subscribe via email
HI - Ive added extra tables and extra fields for Virtuemart. ##_virtuemart_products_ext_misc

Ive updated the available fields and see them in the list but I cannot seem to use/access them in the product export template for VM

Any ideas?
Accepted Answer Pending Moderation
Ah indeed I see in the DB available fields tables that they are there - BUT there seems to be for the com_csvi component - Can I just change the component table to virtuemart_products and the component
?
  1. 11 hours ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
HM - No that didnt work
  1. 11 hours ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
Hello,
Ive added extra tables and extra fields for Virtuemart. ##_virtuemart_products_ext_misc

We only support core VirtueMart table fields as template fields and so you don't see the fields from this table in export. If you want to include this table with other VirtueMart tables then you should use RO CSVI custom table export. Since this export is a generic one there are no filters available like you have in VirtueMart Product export.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 10 hours ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
I"m guessing I could do this via a plugin tho I I wanted them added to standard VM template?
  1. 7 hours ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello,
You can create an Override for adding the fields from table as custom available fields as explained in the document Adding your own custom available fields. You can create an override for VirtueMart Product export to include these fields in export file.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. 7 hours ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
Yes I did see taht - I wasnt too clear on the operation

INSERT IGNORE INTO `#__csvi_availablefields` (`csvi_name`, `component_name`, `component_table`, `component`, `action`) VALUES
('skip', 'skip', 'product', 'com_virtuemart', 'import'),
('combine', 'combine', 'product', 'com_virtuemart', 'import');


I dont see any mention od how to add specific fields

how would I for example add to virtuemart_products_ext_misc

"field1","field2"
?
  1. 6 hours ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hi Derek,

So you create the override.sql file and put it in the folder as explained in the document. In the file you put the fields from your own table. In your case it should look like this:

NSERT IGNORE INTO `#__csvi_availablefields` (`csvi_name`, `component_name`, `component_table`, `component`, `action`) VALUES
('YOURNAME', 'YOURNAME', 'product', 'com_virtuemart', 'export'),
('YOUROTHERNAME', 'YOUROTHERNAME', 'product', 'com_virtuemart', 'export');
Change the YOURNAME, YOUROTHERNAME to the name of your fields. This will make the fields available to the VirtueMart product export. Now you also need to add code in the VirtueMart export routine to know what to do with these fields, that can be done with the Product VirtueMart override that Tharuna mentioned.

Let us know how it goes.
Kind regards,

RolandD

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


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