How can i get custom product attribute custom_attribute_1
using $product->getCustomAttribute1
.Is camel casing works for numbers?
3 Answers
This does not work:
$product->getCustomAttribute1()
This does work:
$product->getCustomAttribute_1()
$product->getData('custom_attribute_1')