承接 vendic/hyva-checkout-hide-business-fields 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

vendic/hyva-checkout-hide-business-fields

最新稳定版本:1.1.2

Composer 安装命令:

composer require vendic/hyva-checkout-hide-business-fields

包简介

Hyvä checkout module to hide business fields for consumers

README 文档

README

This module adds a customer type field to the checkout and hides the business fields when the customer type is set to "consumer". Business fields can be configered via di.xml:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Vendic\HyvaCheckoutHideBusinessFields\Model\Form\HideBusinessFieldsForConsumers">
        <arguments>
            <argument name="businessFields" xsi:type="array">
                <item name="company" xsi:type="string">company</item>
                <item name="vat_id" xsi:type="string">vat_id</item>
            </argument>
        </arguments>
    </type>
</config>

Installation

composer require vendic/hyva-checkout-hide-business-fields

Features

Allows additional customer type options like Organisation to be added to the existing Consumer and Business options.

To add custom customer type options, you can modify or add the following configuration to your module’s di.xml file:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework/ObjectManager/etc/config.xsd">
    <type name="Vendic\HyvaCheckoutHideBusinessFields\Model\Form\AddCustomerTypeRadioButtons">
        <arguments>
            <!-- Pass custom options to the class -->
            <argument name="customCustomerTypeOptions" xsi:type="array">
                <item name="organization" xsi:type="array">
                    <item name="label" xsi:type="string">Organization</item>
                    <item name="value" xsi:type="string">organization</item>
                </item>
                <!-- Add more custom customer types here if needed -->
            </argument>
        </arguments>
    </type>
</config>

统计信息

  • 总下载量: 33.84k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 12
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 12
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固