shopping cart quick add

main
alexanderroese 2024-06-22 17:08:37 +02:00
parent beac52d0ee
commit 8010f328c1
3 changed files with 3 additions and 10 deletions

View File

@ -65,8 +65,6 @@
>
{%- endif -%}
{% render "shx-product-page-shopping-cart-quick-add" %}
{% assign variant_images = product.images | where: 'attached_to_variant?', true | map: 'src' %}
<div class="page-width">
<div class="product product--{{ section.settings.media_size }} product--{{ section.settings.media_position }} product--{{ section.settings.gallery_layout }} product--mobile-{{ section.settings.mobile_thumbnails }} grid grid--1-col {% if product.media.size > 0 %}grid--2-col-tablet{% else %}product--no-media{% endif %}">

View File

@ -10,6 +10,9 @@
Usage:
{% render 'buy-buttons', block: block, product: product, product_form_id: product_form_id, section_id: section.id, show_pickup_availability: true %}
{% endcomment %}
{% render "shx-product-page-shopping-cart-quick-add" %}
<div {{ block.shopify_attributes }}>
{%- if product != blank -%}
{%- liquid

View File

@ -1,16 +1,8 @@
{%- form 'product',
product,
id: product_form_id,
class: 'form',
novalidate: 'novalidate',
data-type: 'add-to-cart-form'
-%}
<button id="scrollToCartButton" class="scroll-to-cart-button" type="submit" name="add">
In den Warenkorb
</button>
{%- endform -%}
<style>
.scroll-to-cart-button {