sndsabin/module-additionalshippingblock

This module lets you add the block in the desired position within shipping method in checkout page

1.0.0 2020-08-15 10:41 UTC

This package is auto-updated.

Last update: 2024-12-11 23:05:34 UTC


README

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

Type 1: Composer (recommended)

  • 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.