shopping cart quick add
parent
6eceef76e5
commit
3e1f472253
|
@ -65,6 +65,8 @@
|
||||||
>
|
>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
|
{% render "shx-product-page-shopping-cart-quick-add" %}
|
||||||
|
|
||||||
{% assign variant_images = product.images | where: 'attached_to_variant?', true | map: 'src' %}
|
{% assign variant_images = product.images | where: 'attached_to_variant?', true | map: 'src' %}
|
||||||
<div class="page-width">
|
<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 %}">
|
<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 %}">
|
||||||
|
|
|
@ -51,8 +51,6 @@
|
||||||
novalidate: 'novalidate',
|
novalidate: 'novalidate',
|
||||||
data-type: 'add-to-cart-form'
|
data-type: 'add-to-cart-form'
|
||||||
-%}
|
-%}
|
||||||
{% render "shx-product-page-shopping-cart-quick-add" %}
|
|
||||||
|
|
||||||
<input
|
<input
|
||||||
type="hidden"
|
type="hidden"
|
||||||
name="id"
|
name="id"
|
||||||
|
|
|
@ -1,7 +1,17 @@
|
||||||
|
{%- 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" onclick="document.getElementById('AddToCartForm').scrollIntoView();">
|
<button id="scrollToCartButton" class="scroll-to-cart-button" onclick="document.getElementById('AddToCartForm').scrollIntoView();">
|
||||||
In den Warenkorb
|
In den Warenkorb
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
{%- endform -%}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.scroll-to-cart-button {
|
.scroll-to-cart-button {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|
Loading…
Reference in New Issue