Hi,
Can anybody help with move the add to cart up the quantity field? I am using the impulse Theme.
The code look like this and is from snippets/product-form.liquid - Maybe I am not in the right code?
{%- capture form_id -%}AddToCartForm-{{ section_id }}{%- endcapture -%}
{%- form ‘product’, product, id: form_id, class: ‘product-single__form’ -%}
{%- unless product.has_only_default_variant -%}
{%- for option in product.options_with_values -%}
{%- liquid
if settings.product_color_swatches
assign is_color = false
assign color_option_index = 0
assign swatch_trigger = ‘products.general.color_swatch_trigger’ | t | downcase
assign color_option_index = forloop.index0
assign downcased_option = option.name | downcase
if downcased_option contains swatch_trigger
assign is_color = true
elsif swatch_trigger == ‘color’ and downcased_option contains ‘colour’
assign is_color = true
endif
endif
-%}
{%- if settings.variant_type == ‘button’ -%}
{%- render ‘variant-button’,
section_id: section_id,
option: option,
forloop: forloop,
is_color: is_color,
color_option_index: color_option_index
-%}
{%- else -%}
{%- render ‘variant-dropdown’,
section_id: section_id,
option: option,
forloop: forloop
-%}
{%- endif -%}
{%- endfor -%}
{%- endunless -%}
{% if product.tags contains ‘bestilling1’ %}
{% endif %}
{%- assign inventory_visible = true -%}
{%- if settings.inventory_enable and current_variant.inventory_management == ‘shopify’ -%}
{%- if current_variant.inventory_quantity <= settings.inventory_threshold and current_variant.inventory_quantity >= 0 -%}
{%- assign inventory_visible = true -%}
{%- endif -%}
{%- endif -%}
{%- liquid
if current_variant.inventory_quantity == 0 or current_variant.inventory_policy == ‘continue’
assign inventory_visible = false
endif
assign show_incoming = false
if current_variant.incoming and inventory_visible == false and current_variant.inventory_quantity <= settings.inventory_threshold
assign show_incoming = true
endif
-%}
{%- if settings.inventory_enable -%}
{%- if settings.inventory_transfers_enable -%}
{%- liquid
assign enable_dynamic_buttons = false
if settings.enable_payment_button and template != ‘product.preorder’
assign enable_dynamic_buttons = true
endif
-%}
{%- if enable_dynamic_buttons -%}
{%- liquid
assign default_text = ‘products.product.add_to_cart’ | t
assign button_text = ‘products.product.add_to_cart’ | t
if template == ‘product.preorder’
assign default_text = ‘products.product.preorder’ | t
assign button_text = ‘products.product.preorder’ | t
endif
unless current_variant.available
assign button_text = ‘products.product.sold_out’ | t
endunless
-%}
{%- if settings.quantity_enable -%}
<button
{% if product.empty? %}type=“button”{% else %}type=“submit”{% endif %}
name=“add”
id=“AddToCart-{{ section_id }}”
class=“btn btn–full add-to-cart{% if enable_dynamic_buttons and product.selling_plan_groups == empty %} btn–secondary{% endif %}”
{% unless current_variant.available %} disabled=“disabled”{% endunless %}>
{{ button_text }}
{%- if enable_dynamic_buttons -%}
{{ form | payment_button }}
{%- endif -%}
{%- if enable_dynamic_buttons -%}
{%- if product.options.size > 1 -%}
{{ current_variant | json }}{%- endif -%}
{%- endform -%}
I would like to move it up where the red box is - see picture downunder
Hope somebody can help - thank you in advance ![]()
Best regards
Maria


