Q:

Magento 1: How can we get WebsiteId or websites from $product?

Magento 1: How can we get WebsiteId or websites array from $product?
Something like?
$product->getWebsiteId()

A:

Load the product object if not loaded, then use this code.
$product->getWebsiteIds() ;

It will give you that data which you want.

