Skip to main content
2 of 2
added 2 characters in body; edited title

How can I set zero price for simple product programmatically?

How can I set zero price for simple product programmatically?

If I set:

$product->setPrice(0);

In admin panel price field is empty. If I save this product - system return error - price field is empty.