Found the issue from debug log: - WooCommerce stores as: attribute_Color (exact case match) - We were trying: attribute_color (lowercase) ❌ Fixed: - Use 'attribute_' + exact attribute name - get_post_meta with true flag returns single value (not array) Result: - Variation #362: {"Color": "Red"} ✅ - Variation #363: {"Color": "Blue"} ✅ Removed debug logging as requested.
21 KiB
21 KiB