spree_wishlist icon indicating copy to clipboard operation
spree_wishlist copied to clipboard

Add to Wishlist is adding the items to my cart

Open chriscarpenter12 opened this issue 9 years ago • 1 comments

Like the title says. On my product page there is a button with code:

<% if spree_current_user %>
  <div id="wishlist-form">
    <%= form_for Spree::WishedProduct.new do |f| %>
      <%= f.hidden_field :variant_id, :value => @product.master.id %>
      <button type="submit" class="btn btn-secondary">
        <%= Spree.t(:add_to_wishlist) %>
      </button>
    <% end %>
  </div>
<% end %>

When I am signed in and click the Add to Wishlist button it adds the item to my shopping cart.

chriscarpenter12 avatar Apr 14 '15 21:04 chriscarpenter12

Maybe wishlist form is inside cart_form on product show view.

ronzalo avatar Feb 12 '16 03:02 ronzalo