Author Topic: Bug with custom fields override ?  (Read 80 times)

aftertaf

  • Jr. Member
  • **
  • Posts: 140
    • sO couture
  • VirtueMart Version: 3.2.4
Bug with custom fields override ?
« on: November 12, 2017, 21:09:32 pm »
Hi,

from https://docs.virtuemart.net/manual/general-concepts/186-derived-products-product-pattern-child-products.html

I did :
Quote
PATTERN

This can be used for product patterns. Just create an unpublished product, enter your default values and use the command "create child". Then just work with the children.

Before you start to enter your products, think about your product types. Very often vendors directly sell a bunch of similar products or it is even their speciality to sell only one kind of products. Similar products often need the same customfields. Sometimes you entered already 100s of products of one type and then you notice that you would like to add a hint to each product.
When you organized your products as children, then you can just edit the parent product to change all derived products.
to make parent/generic products.
I set them up in categories, like in 1st screenshot (notice the categories and the product).
Each product is itself a child of an common ancestor 'Tissu' product that has all the custom fields added to it, 2 custom fields set as an invariable string.
This effectively both provides and have default/override values in each generic product.
Seen Screenshot 2

However, when i change a child product from one parent to another, it doesn't lose the custom fields that is inherited from the old 'parent' product, causing either duplicates of, or old + new values,  while others seem to not have 1/2 of them applied (due to past manipulations and failed cleanups probably..).
you can see this now on our Liberty of London collection (Laize 136, 100% cotton, etc..)
Am I managing these things wrong? Shouldn't the overridden custom fields be deleted when they no longer apply?
screenshots  3 + 4
on the demo store, imagine setting 'Cotton' or Flax as a default custom field 'string, admin list' to the Root Pattern, and you have how i've built my product structure..

screenshots here -> http://www.socouture.fr/custom_fields_vm


I also am curious on how category inheritance works, how it's meant to..
If a child product has no categories, it inherits from parent?
If it has, does it still inherit those from parents at all ?
Webmaster for my wife
Long live joomla, virtuemart and open source in general.
usually latest version of VM & J!
Using POSForWebshops, TemplatecreatorCK, MaximenuCK, VM BatchEdit Pro among other things...
VM 3.2.4, PHP Version 7.0.18-1~dotdeb+8.1, mariadb 10.1.22 Joomla! 3.8.1

aftertaf

  • Jr. Member
  • **
  • Posts: 140
    • sO couture
  • VirtueMart Version: 3.2.4
Re: Bug with custom fields override ?
« Reply #1 on: November 12, 2017, 22:21:23 pm »
cant add screenshots: -> An Error Has Occurred!
The attachments upload directory is not writable. Your attachment or avatar cannot be saved. :(
Webmaster for my wife
Long live joomla, virtuemart and open source in general.
usually latest version of VM & J!
Using POSForWebshops, TemplatecreatorCK, MaximenuCK, VM BatchEdit Pro among other things...
VM 3.2.4, PHP Version 7.0.18-1~dotdeb+8.1, mariadb 10.1.22 Joomla! 3.8.1