PHP code example of ghost-unicorns / module-qty-increment-ui

1. Go to this page and download the library: Download ghost-unicorns/module-qty-increment-ui library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ghost-unicorns / module-qty-increment-ui example snippets



/** @var $block \Magento\Catalog\Block\Product\View */

$productQtyIncrementInput = $block->getLayout()->getBlock('qty-increment-ui-product-simple');

 $productQtyIncrementInput = $block->getChildBlock('qty-increment-ui-product-grouped');