项目作者: sndsabin

项目描述 :
Additional Shipping Block Module lets you add block in the desired placement position within shipping method in checkout page.
高级语言: PHP
项目地址: git://github.com/sndsabin/AdditionalShippingBlock.git
创建时间: 2020-08-15T10:10:19Z
项目社区:https://github.com/sndsabin/AdditionalShippingBlock

开源协议:Other

下载


AdditionalShippingBlock - Magento 2 Module

Main Functionality

This module lets you add a block in the desired placement position within the shipping method on the checkout page.

Installation

* = in production please use the --keep-generated option

  • Install the module composer by running composer require sndsabin/module-additionalshippingblock
  • enable the module by running php bin/magento module:enable SNDSABIN_AdditionalShippingBlock
  • apply database updates by running php bin/magento setup:upgrade*
  • Flush the cache by running php bin/magento cache:flush

Type 2: Zip file

  • Unzip the zip file or git clone(git clone https://github.com/sndsabin/AdditionalShippingBlock.git) this repo in app/code/SNDSABIN/.
  • Enable the module by running php bin/magento module:enable SNDSABIN_AdditionalShippingBlock
  • Apply database updates by running php bin/magento setup:upgrade*
  • Flush the cache by running php bin/magento cache:flush

Configuration

Block

Overall block group configuration

  1. Select Block to be rendered on the checkout page

    • Stores > Configuration > Additional Shipping Block > View Settings > Block > Block
    • select the block to be added above/below the shipping methods on the checkout page.

    Select block to be rendered

  2. Select the block placement

    • Stores > Configuration > Additional Shipping Block > View Settings > Block > Block Placement
      • select the position of the selected block to be placed on the checkout page (above or below the shipping methods).

    Default Option: After Shipping Methods
    Block placement

    3 Render Selected Block Even if it’s not enabled (optional)

    • Stores > Configuration > Additional Shipping Block > View Settings > Block > Render Selected Block If Disabled
    • select the Yes / No Option (If selected Yes, the selected block will be rendered on the checkout page even if the selected block is not enabled.)

    Default Option: No
    Render selected block if it's not enabled

General

Overall block group configuration

  1. Make the selected block visible on the checkout page

    • Stores > Configuration > Additional Shipping Block > View Settings > General > Enabled
    • select the Yes / No Option (If enabled, the assigned block will be visible in the desired position within the shipping method on the checkout page.)

      Default Option: Yes
      Make the selected block visible in checkout page

Frontend Checkout Page

Block Placement : After Shipping Methods

Block placement after the shipping method selected

Block Placement : Before Shipping Methods

Block placement before the shipping method selected

Template css class

There are two classes added to the div element in the template additional-shipping-block-container and additional-shipping-block-content if in case you need to use it.

Template css class

License

GPL

Uppercase Vendor Name 😛 ?

Yes 😄

Bootstrapped using Mage2Gen. Inspired from magento2-module-additional-shipping-block.