This module lets you add a block in the desired placement position within the shipping method on the checkout page.
* = 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
- Unzip the zip file or git clone(
git clone https://github.com/sndsabin/AdditionalShippingBlock.git
) this repo inapp/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
-
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 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).
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.)
- 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.)
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.
Yes 😄
Bootstrapped using Mage2Gen. Inspired from magento2-module-additional-shipping-block.