How to call block function in template file.

<?php$blockObj= $block->getLayout()->createBlock(‘JJ\Paymentinformation\Block\Main’);$data= $blockObj->getMyCustomMethod();?>

And which block u want call in that div

add <p class=”cash-amount”><?=$data[‘credit-limit’];?>

Leave a comment

Your email address will not be published. Required fields are marked *