承接 creditkey/b2bgateway 相关项目开发

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

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

creditkey/b2bgateway

最新稳定版本:1.0.71

Composer 安装命令:

composer require creditkey/b2bgateway

包简介

Credit Key integration with payment gateway

README 文档

README

Installation

From your root Magento directory, run the following command:

% composer require creditkey/b2bgateway

Then enable the module with the following commands:

% php bin/magento module:enable CreditKey_B2BGateway
% php bin/magento setup:upgrade

Configuration

From the Magento admin, navigate to Stores > Configuration > Sales > Payment Methods and scroll down to the Credit Key (Gateway) section.

The Marketing Content on Product Pages section allows you to enable the Credit Key marketing content to be displayed on the selected product detail pages. You can enable/disable this feature globally, select the specific categories to allow the content to be displayed on the products belonging to said categories, and select the style of the displayed content.

Payment Action can be set to Authorize or Authorize and Capture. Authorize and Capture will create an invoice when an order is created. Authorize will not create an invoice when an order is created.

Customization

To move the location of the marketing display on the product details page you will need to modify the file catalog_product_view.xml from your active theme. This will most likely be located at {magento_root}/app/design/frontend/{YourCompany}/{theme-name}/Magento_Catalog/layout/catalog_product_view.xml.

In this file you would simply use the <move> element to move our block, named product.info.creditkey.marketing, to the new location. For example, if you wanted it to be just below the "Add to Cart" button it would look something like the following where element is the name of our block, destination is the name of the container you are moving it into, and after is the name of the block or container it will go after. This could instead be before if you want to place it before a specific block/container.

<?xml version="1.0"?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <move element="product.info.creditkey.marketing" 
                destination="product.info.form.content" 
                after="product.info.addtocart"/>
    </body>
</page>

To see the available containers you can use reference Magento's primary catalog_product_view.xml file, located at vendor/magento/module-catalog/view/frontend/layout/catalog_product_view.xml.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 6
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-09-05