Sha256: 691bef2660019a9c692b21efe1a2279cbba44f2540cbccf662b903f299947a86

Contents?: true

Size: 533 Bytes

Versions: 10

Compression:

Stored size: 533 Bytes

Contents

.quick-add-to-cart-form
  - order = current_order(true)
  %span.current-order-path(style="display:none")
    = api_current_order_path
  = form_tag api_order_line_items_path(order.number), method: :post do
    .fields
      = hidden_field_tag "order_token", order.token
      = hidden_field_tag "line_item[variant_id]", product.master.id
      = number_field_tag "line_item[quantity]", 1, :class => 'add-quantity', :min => 1
      = button_tag :class => 'large primary add-button', :type => :submit do
        = Spree.t(:add_to_cart)

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spree_quick_cart-2.1.13 app/views/spree/shared/_quick_cart_add_button.haml
spree_quick_cart-2.1.12 app/views/spree/shared/_quick_cart_add_button.haml
spree_quick_cart-2.1.11 app/views/spree/shared/_quick_cart_add_button.haml
spree_quick_cart-2.1.10 app/views/spree/shared/_quick_cart_add_button.haml
spree_quick_cart-2.1.9 app/views/spree/shared/_quick_cart_add_button.haml
spree_quick_cart-2.1.8 app/views/spree/shared/_quick_cart_add_button.haml
spree_quick_cart-2.1.7 app/views/spree/shared/_quick_cart_add_button.haml
spree_quick_cart-2.1.6 app/views/spree/shared/_quick_cart_add_button.haml
spree_quick_cart-2.1.5 app/views/spree/shared/_quick_cart_add_button.haml
spree_quick_cart-2.1.4 app/views/spree/shared/_quick_cart_add_button.haml