Hi folks --
I was just working on a module project that calls Product_Delete(), and I was surprised to find that if I did this to a product with attributes and variants, the variants were not deleted. As a check, I tried the same thing on the admin pages: create a master product with attributes, auto-generate variants, and then delete the master. In this case, too, the variants were left behind.
Is that correct behavior? It seems counter-intuitive to leave the variants behind; aren't they useless without a master?
Suppose I create a new master product with the same code as the one I deleted: will the orphan variants be automatically linked to the new master?
Inquiring minds want to know ... Thanks --
I was just working on a module project that calls Product_Delete(), and I was surprised to find that if I did this to a product with attributes and variants, the variants were not deleted. As a check, I tried the same thing on the admin pages: create a master product with attributes, auto-generate variants, and then delete the master. In this case, too, the variants were left behind.
Is that correct behavior? It seems counter-intuitive to leave the variants behind; aren't they useless without a master?
Suppose I create a new master product with the same code as the one I deleted: will the orphan variants be automatically linked to the new master?
Inquiring minds want to know ... Thanks --
Comment