Skip to content

Error when having an order with only downloadable products #26

@royduin

Description

@royduin

This line causes errors when I have an order with only downloadable products because there in that case there is no shipping method: https://github.com/CVM/Magento_GoogleTagManager/blob/master/app/code/community/CVM/GoogleTagManager/Block/Gtm.php#L92

I've fixed this now with:

'transactionShippingMethod' => $order->canShip() ? $order->getShippingCarrier()->getCarrierCode() : 'downloadable',

Can you fix this in the next version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions