spree_quick_cart 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/spree/shared/_quick_cart_add_button.haml +10 -11
- data/spree_quick_cart.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 257c167105ca217e77708ba560c1228ef180d452
|
4
|
+
data.tar.gz: 32d9dfab30dd1b9001e5c1d273c8f6167168d446
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b36a33e29aa231d623fb600be5d0c848f9b5b8a602b850dea7954cb71ede2b9511edf4278f594f3fb7ced46e02ca1622273029b5630eafe1a028f275b8337a16
|
7
|
+
data.tar.gz: fabc16d7f793b58e7de0b5d24ff98e44250ea0a433b5d16aefdb9a95ebd8d8ab34674c663d6122bba7ccf333ab8ace3c4e81fe51e45bd7929670d744fdb43093
|
@@ -1,12 +1,11 @@
|
|
1
1
|
.quick-add-to-cart-form
|
2
|
-
- order =
|
3
|
-
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
.
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
=
|
12
|
-
= Spree.t(:add_to_cart)
|
2
|
+
- order = current_order(true)
|
3
|
+
%span.current-order-path(style="display:none")
|
4
|
+
= current_api_orders_path
|
5
|
+
= form_tag api_order_line_items_path(order.number), method: :post do
|
6
|
+
.fields
|
7
|
+
= hidden_field_tag "order_token", order.token
|
8
|
+
= hidden_field_tag "line_item[variant_id]", product.master.id
|
9
|
+
= number_field_tag "line_item[quantity]", 1, :class => 'add-quantity', :min => 1
|
10
|
+
= button_tag :class => 'large primary add-button', :type => :submit do
|
11
|
+
= Spree.t(:add_to_cart)
|
data/spree_quick_cart.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.platform = Gem::Platform::RUBY
|
4
4
|
s.name = 'spree_quick_cart'
|
5
|
-
s.version = '0.2.
|
5
|
+
s.version = '0.2.1'
|
6
6
|
s.summary = 'Insert add to cart button in product index page'
|
7
7
|
s.description = 'Adds js quick add to cart button to product catalogue'
|
8
8
|
s.required_ruby_version = '>= 2.0.0'
|