Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Add to Wishlist is adding the items to my cart #79

Open
chriscarpenter12 opened this issue Apr 14, 2015 · 1 comment
Open

Add to Wishlist is adding the items to my cart #79

chriscarpenter12 opened this issue Apr 14, 2015 · 1 comment

Comments

@chriscarpenter12
Copy link

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.

@ronzalo
Copy link

ronzalo commented Feb 12, 2016

Maybe wishlist form is inside cart_form on product show view.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants