Created
April 25, 2026 19:06
-
-
Save blopa/ab0743cc4ac464e6c54c272e2d02ae2e to your computer and use it in GitHub Desktop.
Code for post "I built a retro RPG game shop extension for my Magento 2 store"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Shopkeeper Avatar --> | |
| <div class="border-2 border-orange-500 p-2 flex justify-center items-center bg-black"> | |
| <img src="<?= $block->getViewFileUrl('Werules_GameShop::images/shopkeeper.png'); ?>" | |
| alt="<?= __('Shopkeeper Avatar'); ?>" | |
| class="w-32 h-32 object-cover border border-orange-500 bg-black avatar"> | |
| </div> | |
| <!-- Cart Count --> | |
| <div class="mb-4"> | |
| <div class="text-lg text-orange-400"><?= __('Cart items:'); ?></div> | |
| <div class="text-2xl font-bold">{{ cartCount }}</div> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment