When a user clicks "Add to Wishlist" on a product that uses swatching, it saves the configurable product ID, not the simple product id. How can I get it to save the simple product id in the wish list tables?

Swatches and "Add to Wishlist"

I have looked at several other questions on Stack Exchange and none of them appear to address this issue:

Add Product to Wishlist with a Selected Custom option

Magento 1.6.2 Adding Configurable Product in Wishlist : How to check whether or not all required fields are filled before adding to wishlist

mangento add product options into wishlist

I think most of these solutions are if the options are not set as swatches.

I would appreciate any suggestions. Thanks.

Question: What changes in the code do I need to make in order to save the simple product id to the wish list instead of the configurable product id?

1 Answer 1


You can apply swatches for configurable products only.

From the docs

Swatches provide an alternate way to display the selection of options for configurable products. Rather than choosing an option from a drop-down list, customers can make their selection by clicking a swatch

  • Thanks for you response, but it does not answer my question, which is "How can I get it to save the simple product id in the wish list tables?"
    – cjochum
    Nov 5, 2019 at 14:14
  • Yes i got it but You cannot do it until you do some changes in core. Nov 5, 2019 at 14:34
  • I understand I need to make changes to the core, I'm hoping someone can provide me guidance on what needs to change in the core in order to add configurable products to the wish list.
    – cjochum
    Nov 13, 2019 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.