Sha256: 8327c773743fd5263e4c6a956e9ec146f9787fcb44264b7fad7dd72e24a956fe

Contents?: true

Size: 853 Bytes

Versions: 4

Compression:

Stored size: 853 Bytes

Contents

<script src="/assets/store/all.js" type="text/javascript">
</script>
<%= form_tag populate_orders_path, :id => 'add_to_cart', :method => :post do %>
<% @products.each do |product_id,variant_id| %>
<input type="hidden" name="products[<%=product_id%>]" value="<%=variant_id%>"><%end %>
<% @quantity.each do |variant_id,quantity| %>
<input type="hidden" name="variants[<%=variant_id%>]" value="<%=quantity%>"><%end %>
<% end %>
<%= form_tag empty_cart_path, :id => 'flush_cart', :method => :put do %>
<%end %>
<div style='text-align:center;margin-top:200px'>
    <%= image_tag 'loading.gif', :alt => '' %>
    <p>
        <h2>loading..........</h2>
    </p>
</div>
<script type="text/javascript">
    $.ajax({
        type: "PUT",
        url: '/cart/empty',
        success: function(){
            $('#add_to_cart').submit();
        }
    });
</script>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_froomerce_fconnect-0.70.5 app/views/froomerce_products/call_backs.html.erb
spree_froomerce_fconnect-0.70.4 app/views/froomerce_products/call_backs.html.erb
spree_froomerce_fconnect-0.70.3 app/views/froomerce_products/call_backs.html.erb
spree_froomerce_fconnect-0.70.2 app/views/froomerce_products/call_backs.html.erb