public function getAddToOrder(Models\Product $product)
    {
        return $this->getTrackPayload(ActionTypes::ADDED_TO_ORDER, [
            PayloadProperties::PROPERTIES =>
                [
                    [
                        PayloadProperties::PRODUCT => $product->toArray()
                    ]
                ]
        ]);
    }
public function getAddToOrder(Models\Product $product)
    {
        return $this->getTrackPayload(ActionTypes::ADDED_TO_ORDER, [
            PayloadProperties::PROPERTIES =>
                [
                    [
                        PayloadProperties::PRODUCT => $product->toArray()
                    ]
                ]
        ]);
    }
public function getAddToOrder ( Models \ Product $ product ) { return $ this -> getTrackPayload ( ActionTypes :: ADDED_TO_ORDER , [ PayloadProperties :: PROPERTIES => [ [ PayloadProperties :: PRODUCT => $ product -> toArray ( ) ] ] ] ) ; }
Generates payload for add to order events

@param Models\Product $product
@return array
Generates payload for add to order events