There is a string type custom field in VM, where "is a list" checkbox is checked.
When I import a product and add a new value, CSVI stores it in #__virtuemart_product_customfields, but I can't see it in VirtueMart's backend area, because the possible values are rendered as dropdown list and there's no <option> for the value which is stored in the db. So when I import the porodct, it is stored with the correct data, but when I open i in the admin and submit the form, VM will override the correct data with the first possible value from the dropdown.
Could you please extend the import functionality with adding the values to the field's list, too?
- keep
- RO CSVI
- Thursday, 28 May 2020
- Subscribe via email
0
Accepted Answer
Pending Moderation
Hello,
Please post the import debug log and sample of your import file to check. Also send us the screenshot on how you have set up your String custom fields with values to show in the list. To get the debug log check How to collect debug information? document.
Please post the import debug log and sample of your import file to check. Also send us the screenshot on how you have set up your String custom fields with values to show in the list. To get the debug log check How to collect debug information? document.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Hello
I've created these screenshots after I run the import
Here is the field setup: https://snipboard.io/GsVH8W.jpg
The database entry: https://snipboard.io/qtXNlg.jpg
The product edit form: https://snipboard.io/xB63AS.jpg
As you can see, the stored value is 'green' but there's no option with this value in the dropdown.
I've created these screenshots after I run the import
Here is the field setup: https://snipboard.io/GsVH8W.jpg
The database entry: https://snipboard.io/qtXNlg.jpg
The product edit form: https://snipboard.io/xB63AS.jpg
As you can see, the stored value is 'green' but there's no option with this value in the dropdown.
Attachments (1)
Accepted Answer
Pending Moderation
Hello,
Thank you for the screenshots. With VirtueMart Product import, there is no option to add or create values for list custom fields and so the value green is not added to the default list. You need to import default values using VirtueMart Custom fields import and then using VirtueMart Product import you can get the value selected for a product.
Thank you for the screenshots. With VirtueMart Product import, there is no option to add or create values for list custom fields and so the value green is not added to the default list. You need to import default values using VirtueMart Custom fields import and then using VirtueMart Product import you can get the value selected for a product.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Hi
Thanks, but I created a csvi plugin and when the import is finished, it rebuilds the custom_value, based on the available customfield_values
Best regards
Peter
Thanks, but I created a csvi plugin and when the import is finished, it rebuilds the custom_value, based on the available customfield_values
Best regards
Peter
Accepted Answer
Pending Moderation
Hello Peter,
I am little confused here, you have developed the feature of adding values from customfield_values field from #__virtuemart_product_customfields table to custom_value field of #__virtuemart_customs table using a custom RO CSVI Plugin and you want us to add this feature to core functionality? If you have a plugin to do this then why is the green value not added to the default list?
I am little confused here, you have developed the feature of adding values from customfield_values field from #__virtuemart_product_customfields table to custom_value field of #__virtuemart_customs table using a custom RO CSVI Plugin and you want us to add this feature to core functionality? If you have a plugin to do this then why is the green value not added to the default list?
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Because I developed the plugin after I submitted the reply
As you wrote that CSVI does not supposed to add the value to the list when I import the product, so it is not a bug, so I decided to build a little helper.

Accepted Answer
Pending Moderation
Hello Peter,
That makes things clear. You are super fast with code solutions
Yes it is not a bug but just that you need to use custom field import to add default values and with product import selected values can be assigned to product.
That makes things clear. You are super fast with code solutions

Yes it is not a bug but just that you need to use custom field import to add default values and with product import selected values can be assigned to product.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »