It took some time, but finally it turned out. When I created my attributes, in the attribute properties, where it says “Apply to:”, I assigned it only to custom products, but you should also assign simple products. (or just applicable to everyone)
Remember that you will have to recreate the original custom product before it works.
source share