This forum is now Read-Only. The Magento Community Forum is scheduled to close permanently on December 31, 2025. Please save any necessary information before this date. Join us on Slack for continued engagement!
Hi, $product->setName('name'); or $product->setWeight('weight); all are working. I created a custom attribute 'color' and it has two values 'Black' and 'White' as options. How can I set product's color to white when I save the product? Thank you.