Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save blopa/de01ee3c97789cf66df7f32ab6d8c1ca to your computer and use it in GitHub Desktop.
Save blopa/de01ee3c97789cf66df7f32ab6d8c1ca 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"
<!-- 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