1. keep
  2. RO CSVI
  3. Thursday, 28 May 2020
  4.  Subscribe via email
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?
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.
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
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.
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 2
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.
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. # 3
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
  1. more than a month ago
  2. RO CSVI
  3. # 4
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?
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. # 5
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.
  1. more than a month ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hello Peter,
That makes things clear. You are super fast with code solutions :p

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
  1. more than a month 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!