uawdijnntqw1x1x1
IP : 216.73.216.107
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
.
/
apps
/
craft4-newsite-space
/
.
/
templates
/
shop
/
products
/
.
/
_includes
/
grid.twig
/
/
<!-- Template: {{ _self }}.twig --> {# @var products \craft\commerce\elements\Product[] #} <div class="my-6"> <div class="grid gap-3 gap-y-9 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4"> {% for product in products %} <div class="relative bg-gray-50 rounded"> <div> <a class="block" href="{{ product.url }}"> {% include "shop/_private/images/placeholder.svg" with { class: 'w-full h-auto rounded rounded-b-none opacity-75 hover:opacity-100', width: 320, height: 140 } %} </a> </div> <div class="m-4"> <div class="relative text-lg text-bold mb-2"> <div class="w-2/3"> <a class="leading-tight text-blue-500 hover:text-blue-600" href="{{ product.url }}"> {{ product.title|title }} </a> </div> <div> <span class="absolute top-0 right-0">{{ product.defaultPriceAsCurrency }}</span> </div> </div> <p class="text-sm"> {{ 'This is a pretend product description, placeholdering here for you to swap with something better.'|t }} </p> <form method="post" class="mt-6"> {{ csrfInput() }} {{ actionInput('commerce/cart/update-cart') }} {{ successMessageInput('{product} added to cart.'|t({ product: product.title })) }} {# {{ hiddenInput('clearNotices', true) }} #} <div class="inline-block relative w-full"> {% tag 'select' with { name: 'purchasableId', class: [ 'js-purchasableId', 'block', 'appearance-none', 'w-full', 'border', 'border-gray-200', 'hover:border-gray-500', 'px-4', 'py-2', 'pr-8', 'rounded', 'leading-tight', 'focus:outline-none', 'focus:ring' ] } %} {% for variant in product.getVariants() %} {# @var variant \craft\commerce\elements\Variant #} {{ tag('option', { value: variant.id, text: variant.sku ~ ' ' ~ variant.salePrice|currency(cart.currency) }) }} {% endfor %} {% endtag %} <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-500"> <svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"> <path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"/> </svg> </div> </div> <div class="mt-1 grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2"> {{ input('number', 'qty', 1, { class: 'mr-0 mb-1 md:mr-1 md:mb-0 sm:mb-1 border border-gray-200 hover:border-gray-500 px-4 py-2 pr-8 rounded leading-tight focus:outline-none focus:ring', step: 1, min: 1, placeholder: 'Quantity'|t }) }} {% if product.availableForPurchase %} {{ tag('button', { type: 'submit', class: ['m-0', 'text-center', 'cursor-pointer rounded px-4 py-2 inline-block bg-blue-500 hover:bg-blue-600 text-white hover:text-white'], text: 'Add to cart'|t }) }} {% else %} {{ tag('button', { type: 'submit', class: ['m-0', 'text-center', 'cursor-pointer rounded px-4 py-2 inline-block bg-gray-500 hover:bg-gray-600 text-white hover:text-white'], text: 'Unavailable'|t }) }} {% endif %} </div> <div class="mt-1"> <label> {{ input('checkbox', 'options[giftWrapped]', 'yes') }} {{ 'Gift wrap item'|t }} </label> </div> </form> </div> </div> {% endfor %} </div> </div>
/srv/users/craft4/./apps/craft4-newsite-space/./templates/shop/products/./_includes/grid.twig