1. rapidmedia
  2. RO CSVI
  3. Thursday, 28 April 2016
  4.  Subscribe via email
J! 3.5.1
VM 3.0.16
CSVi 6.5.7

When importing parent & child products, the custom fields that are strings have the disabler activated, but the custom fields that are plugins (Break Design's Custom Fields For All plugin) are not being disabled. Are there any insights as to why that is?

I'll be going into addons/model/import/product.php to see if I can add some additional logic and, if I fix it, I'll post the adjustments here.
Accepted Answer Pending Moderation
I'm trying to add the field_type 'E' to private function loadCustomFields() in addons/model/import/product.php but no changes made to that file show up in the debug log so which file is responsible for importing if not the one I'm looking at?

ETA: localhost sandbox permission error on products.php. Corrected permissions and I can carry on
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hello,
You dont have to do so much of digging with code :laugh: ,to activate disbler field for custom fields you just need to add field custom_disabler and set the value as Y or N. CSVI will automatically activate/disable the disabler field. It is the same with string custom fields too. If you have this field in import file and have an issue, Please post your debug log and import file, i will have a look at it.
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. # 2
Accepted Answer Pending Moderation
I discovered this last night and was about to test it this morning, so your confirmation that I'm on the right track really helps! Thanks!

ETA: I've reverted all files back to their original state and unfortunately only the first custom field data gets disabled. It also doesn't seem to recognize customfieldsforall plugins. Data for all fields and plugins is properly populated except for the custom_disabler and custom_override
Attachments (2)
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Hello,
You have 5 custom fields and so your custom_disabler and custom_override would be Y~Y~Y~Y~Y. Try import by changing this.
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. # 4
Accepted Answer Pending Moderation
I feel silly for not catching that lol. The only issue left is how to do the same to the string variables and then I'm all set. I tried increasing the number of ~Y but no luck. Since you're on a roll, any suggestions on how to do that too? Thanks tharuna!
  1. more than a month ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
Hello,
Its the same way you do for string custom fields too. Can you post the import file? The one attached in other post seems to be for customfieldsforall so i hope you have a different file for string custom fields.
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. # 6
Accepted Answer Pending Moderation
I'm not sure I understand. I need a separate file for Product A strings and one for Product A customfieldsforall? The current import file contains all of the data for one product and its 5 children, whether the data field be string, customfieldsforall plugin, or multi-variant. All fields have been mapped using the current import file as a template, though on a side note, field mapper won't let me save any changes to the field map after the first save that loads the fields. I'm wondering if this is partly responsible, or if this is a result of the field headings not complying with the CSVi format?

ETA: The import file contains the 5 custom_values and the other headings like Best Used For are mapped to strings
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 7
Accepted Answer Pending Moderation
Hello,
I'm not sure I understand. I need a separate file for Product A strings and one for Product A customfieldsforall? The current import file contains all of the data for one product and its 5 children, whether the data field be string, customfieldsforall plugin, or multi-variant.

As per your file the custom_override and custom_disabler is set for customfieldsforall as that is the one defined under custom_title and custom_value. If you need to update your string custom fields you need to create a separate import file with string custom fields as custom_title and custom_value and have a custom_override and custom_disabler fields defined for it. Please have a look at Importing virtuemart custom fields documentation to know more about it.

All fields have been mapped using the current import file as a template, though on a side note, field mapper won't let me save any changes to the field map after the first save that loads the fields. I'm wondering if this is partly responsible, or if this is a result of the field headings not complying with the CSVi format?

The problem is with the space in your fields, it is breaking the HTML and hence throwing a Javascript error. Moreover it is Joomla problem and the issue has been already identified and fixed. You need to wait for Joomla 3.5.2 version for the fix.
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. # 8
  • Page :
  • 1


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