- Issue created by @luke.stewart
- 🇵🇭Philippines ambot112
C is a good approach.
However, other modules can subscribe the PRODUCT_DEFAULT_VARIATION event and do additional variation filtering.
- 🇮🇱Israel jsacksick
hm... The patch doesn't look correct, as you're not even looping on $enabled_variations... And btw the variable has a confusing name...
$this->getVariations()
returns all variations, regardless on whether they're enabled or not.Not sure yet whether we should proceed with that.
- 🇵🇭Philippines ambot112
Update the patch to use a function getFilteredVariations.