reach-digital/magento2-companyswitcher 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

reach-digital/magento2-companyswitcher

Composer 安装命令:

composer require reach-digital/magento2-companyswitcher

包简介

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

README 文档

README

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; ?>

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!)
  2. company
  3. vat_id
  4. own_reference (you can disable it if you don't use it. But you need to add it)

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

Developed by Reach Digital
https://www.reachdigital.nl

统计信息

  • 总下载量: 979
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 9
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2018-02-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固