Hello Roland,
Having checked your nice tutorial regarding usage of custom_disabler / custom_override, i think there is an issue when trying to use these when the same custom field is used multiple times for a product, let me explain using the following example of import file (fyi it relates to car brakes):
product_sku product_parent_sku custom_title custom_value custom_override
HO09-286 CALIPERTYPECALIPERTYPEROTORTYPECALIPERCOLORCALIPERCOLOR 6 POT SPORT FIXED4 POT STREET FIXEDDrilledGreenYellow
HO09-304 HO09-286 CALIPERTYPECALIPERTYPE 8 POT SPORT FIXED8 POT STREET FIXED Y~Y
Things to note
- All Custom fields of parent product HO09-286 are inherited to HO09-304.
- The custom fields ROTORTYPE
CALIPERCOLORCALIPERCOLOR and their values are also used by HO09-304 so we don't import them again and we use the inherited values. - We just want to override the values of CALIPERTYPE~CALIPERTYPE.
The problem is that CSVI sees as CALIPERTYPE only the 1st instance of the CALIPERTYPE field for the parent (the one i have colored in red) and not the other instances.
So, after above import we will have the following values for the child product HO09-304:
8 POT SPORT FIXED (this overrides 6 POT SPORT FIXED)
8 POT STREET FIXED (again, this overrides 6 POT SPORT FIXED which is wrong, should overwrite the 4 POT STREET FIXED)
4 POT STREET FIXED (this is not overriden, still the parent value is there)
So it seems that we need a way to have CSVI recognize the different instances of the same custom field. Same ofcourse applies to custom_disabler field.
I hope above is clear!
Rgrds,
Chris
CSVI 7.16.1, Virtuemart 3.8.2, Joomla 3.9.18, PHP 7.2.31
Hello Chris,
Thank you so much for clear instructions. The issue is fixed and attached is the patch file you need to load to have custom_override and custom_disabler to work as it should. Let me know how it goes.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Great Tharuna, seems to be working ok now, thanks!
Reverting if i notice anything strange.
Rgrds,
Chris
CSVI 7.16.1, Virtuemart 3.8.2, Joomla 3.9.18, PHP 7.2.31
Log in to reply to this topic.