2017 © Pedro Peláez
 

magento2-module magento2-companyswitcher

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

image

reach-digital/magento2-companyswitcher

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

  • Wednesday, June 27, 2018
  • by honl
  • Repository
  • 8 Watchers
  • 2 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Reach Digital Company Switcher

Changelog, (*1)

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)., (*2)

'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., (*3)

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}}, (*4)

(Fooman) PDF

For PDF you can use:, (*5)

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

Configuring with OneStepCheckout.com extension

Onestepcheckout fields can randomly shift when using this extension without properly configuring the extension. You need to add the two new fields, and set them in the correct order. In the Onestepcheckout configuration add field with name 'company_switcher' and a field with the name 'own_reference'. Set the order of the fields: 1. company_switcher (enable it!) 1. company 1. vat_id 1. own_reference (you can disable it if you don't use it. But you need to add it), (*6)

Credits

Read more about this extension on our blog
https://www.reachdigital.nl/blog/gratis-magento-2-module-optimaal-zakelijk-bestellen-in-het-magento-afrekenproces, (*7)

Developed by Reach Digital
https://www.reachdigital.nl, (*8)

The Versions

27/06 2018

dev-master

9999999-dev https://github.com/ho-nl/magento2-ReachDigital_CompanySwitcher

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

  Sources   Download

BSD-2-Clause

The Requires

  • php 7.0.2|7.0.4|~7.0.6|~7.1.0

 

22/02 2018

0.1.1

0.1.1.0 https://github.com/ho-nl/magento2-ReachDigital_CompanySwitcher

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

  Sources   Download

BSD-2-Clause

The Requires

  • php 7.0.2|7.0.4|~7.0.6|~7.1.0

 

02/02 2017

0.1.0

0.1.0.0

  Sources   Download

The Requires

  • php ~7.0.0