cart drawer and general structure

This commit is contained in:
elvira
2026-09-04 19:39:37 +03:00
parent c5f7b28aa0
commit 7577426f49
22 changed files with 1075 additions and 8 deletions
+7 -3
View File
@@ -170,10 +170,14 @@ class="absolute bottom-6 right-8 text-white text-sm"
<x-ui.color-swatch :variants="$product['variants']" :option="$option" />
@endif
<div class="flex items-stretch gap-10">
<x-checkout::add-to-cart
:purchasable="$variantsData[0]['id'] ?? null"
:quantity="false"
class="flex items-stretch gap-10"
>
<x-ui.quantity name="quantity" />
<x-ui.button class="flex-1">{{ __('storefront.product.add_to_cart') }}</x-ui.button>
</div>
<x-ui.button type="submit" class="flex-1">{{ __('storefront.product.add_to_cart') }}</x-ui.button>
</x-checkout::add-to-cart>
</div>