Sha256: ad0639ade95ccbfc7ef62fe0f159549ac79f5ee54714d083e55d54cee8b51fcd

Contents?: true

Size: 522 Bytes

Versions: 2

Compression:

Stored size: 522 Bytes

Contents

.quick-add-to-cart-form
  - order = Spree::Order.find(session[:order_id]) if session[:order_id]
  - if order
    = 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

2 entries across 2 versions & 1 rubygems

Version Path
spree_quick_cart-0.1.1 app/views/spree/shared/_quick_cart_add_button.haml
spree_quick_cart-0.1.0 app/views/spree/shared/_quick_cart_add_button.haml