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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98bf99bf695e7d1432b8b6929aeb3c42be63b913
4
- data.tar.gz: dd71bcc808b8a9436911fbb4bbe57bfd5802d78c
3
+ metadata.gz: 257c167105ca217e77708ba560c1228ef180d452
4
+ data.tar.gz: 32d9dfab30dd1b9001e5c1d273c8f6167168d446
5
5
  SHA512:
6
- metadata.gz: 330c221ed93596bb8c8b51eda12dbbbadb468168978868fb0ce4969e6b6c3cae518e8bc825e094c1beaefa4bfdae6183b7925e93cad585ca328505104f4fa75a
7
- data.tar.gz: 7387870a91bbbc6ae911d55db1d326d46869c849a958f7b3e5a3de1bd11a256f4fc13e5fc8b34d3376e582926ded49ba320e5e28c3fdad65b6ff0a9696e59f22
6
+ metadata.gz: b36a33e29aa231d623fb600be5d0c848f9b5b8a602b850dea7954cb71ede2b9511edf4278f594f3fb7ced46e02ca1622273029b5630eafe1a028f275b8337a16
7
+ data.tar.gz: fabc16d7f793b58e7de0b5d24ff98e44250ea0a433b5d16aefdb9a95ebd8d8ab34674c663d6122bba7ccf333ab8ace3c4e81fe51e45bd7929670d744fdb43093
@@ -1,12 +1,11 @@
1
1
  .quick-add-to-cart-form
2
- - order = Spree::Order.find(session[:order_id]) if session[:order_id]
3
- - if order
4
- %span.current-order-path(style="display:none")
5
- = current_api_orders_path
6
- = form_tag api_order_line_items_path(order.number), method: :post do
7
- .fields
8
- = hidden_field_tag "order_token", order.token
9
- = hidden_field_tag "line_item[variant_id]", product.master.id
10
- = number_field_tag "line_item[quantity]", 1, :class => 'add-quantity', :min => 1
11
- = button_tag :class => 'large primary add-button', :type => :submit do
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)
@@ -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.0'
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'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_quick_cart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francisco Trindade