Skip to content

Add M2Epro marketplace order number to PDF printout made by Fooman add-on in Magento 2

License

Notifications You must be signed in to change notification settings

fabiocasolari/magento2_Foomanpdf-m2epro_integrations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

magento2_Foomanpdf-m2epro_integrations

vendor/fooman/pdfcustomiser-implementation-m2/src/Block/AbstractSalesDocument.php

add after $block->setTemplate($this->templateFileDecider->pick($this->getDesign(), 'shipping')); (line 375)

    if(array_key_exists('channel_order_id', $this->getOrder()->getPayment()->getAdditionalInformation())) {
        $m2epro_description = 'Ordine ';
        $m2epro_description .= $this->getOrder()->getPayment()->getAdditionalInformation()['component_mode'];
        $m2epro_description .= ': ';
        $m2epro_description .= $this->getOrder()->getPayment()->getAdditionalInformation()['channel_order_id'];
        $block->setShippingDescription($m2epro_description);
    } else {
        $block->setShippingDescription($this->getOrder()->getShippingDescription());
    }

About

Add M2Epro marketplace order number to PDF printout made by Fooman add-on in Magento 2

Topics

Resources

License

Stars

Watchers

Forks