How to create a custom template
Steps to Create a Custom Template
<?php /* * Name: My template name * Modules: * Module Types: PRODUCT * */ use ContentEgg\application\helpers\TemplateHelper; // This will include the Bootstrap 5 CSS file and the default plugin CSS file \ContentEgg\application\components\BlockTemplateManager::getInstance()->enqueueCeggStyle(true); ?><div class="cegg5-container"> <!-- Inside this container, you can use Bootstrap 5 classes --> </div><?php foreach ($items as $key => $item) : ?> <!-- product data output here --> <?php endforeach; ?>
Last updated