1. atrus
  2. RO CSVI
  3. Monday, 25 July 2016
  4.  Subscribe via email
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 [color=#ff0000]CALIPERTYPE[/color]~CALIPERTYPE~ROTORTYPE~CALIPERCOLOR~CALIPERCOLOR 6 POT SPORT FIXED~4 POT STREET FIXED~Drilled~Green~Yellow
HO09-304 HO09-286 CALIPERTYPE~CALIPERTYPE 8 POT SPORT FIXED~8 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~CALIPERCOLOR~CALIPERCOLOR 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
Accepted Answer Pending Moderation
Great Tharuna, seems to be working ok now, thanks!

Reverting if i notice anything strange.

Rgrds,
Chris
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
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.


patch_vm_override_2016_07_26.zip
Attachments (1)
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
  • Page :
  • 1


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