reach-digital/magento2-companyswitcher 0.1.1

Moves the Company and Vat field to the top of the checkout and add a switcher (private/business).

Type

magento2-module

License

BSD-2-Clause

Requires
Requires (dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Reach Digital Company Switcher

Changelog

Installation

composer require reach-digital/magento2-companyswitcher
php bin/magento module:enable Ho_CompanySwitcher

Description

Moves the Company and Vat field to the top of the checkout and add a switcher (private/business).

'Own Reference' field

Field is added to the order view page automatically. You'll need to edit the matching template when adding the field to email/pdf.

Email

For email you can use: {{depend order.getData('own_reference')}}<div>{{trans 'Own reference: %own_reference' own_reference=$order.getData('own_reference') |escape|raw}}</div>{{/depend}}

(Fooman) PDF

For PDF you can use:

<?php if (! empty($order->getData('own_reference'))): ?>
    <?= __('Own reference') ?>: <?= $block->escapeHtml($order->getData('own_reference')); ?><br/>
<?php endif; ?>