• Hi there,
    I have a custom meta field for example ring_size, I want to add this field data to the product when adding it to the wishlist. And after that, I want to see it on the wishlist page and to have the ability to update the value of ring_size, like with variation. The second part is optional, I can do it by removing and adding the product again, I need to understand how to add metadata to the wishlist product if this value is dynamic, I mean user can choose the value like an attribute.
    Example of product view – https://prnt.sc/F93L1kKViM4Q

    Looking forward,
    Nazar.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hi Nazar,
    we hope you’re doing well!

    The only option we can offer is to show the product meta field in the wish list, but that field must already have been previously defined in your products. It will not be possible to modify it in the wish list, unless you edit it directly from the edition of the product where you have defined it.

    Let us know if this is okay for you.

    You can do this by overriding the wishlist-view.php template in your theme, and making the change there.

    We will be attentive to your response.

    Best regards.

    Thread Starter Nazar

    (@zaaz28)

    @juaancmendez So you mean that I can’t add any metadata to the wishlist even with the premium version?
    Example: https://prnt.sc/4O3ZPZcQRzDZ
    1) Attribute
    2) Meta field

    I saw that You have a filter yith_wcwl_add_to_wishlist_params where I can add some data. Is exist any way to add here the wishlist item key and this meta dynamically? Or some tricks to add data to the wishlist by item key?

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    With both versions, the attributes of the variations added to the wishlist will be seen and for this you must activate the option “Product variations selected by the user (example: size or color)” in the section Wishlist Page > Wishlist Detail Page > In wishlist table Show.

    If instead of the variation, you add the parent product, a button will appear that redirects to the product page to select the variation.

    If you want to dynamically change the variation from the wishlist, that is only possible with the premium version in combination with our YITH Color, Image & Label Variation Swatches for WooCommerce plugin.

    On the other hand, you can display metadata products on the wishlist, and you can do this by overriding the wishlist-view.php template.

    If you want to show meta fields, tell us the key and the place where you want to show it and we can help you achieve it.

    We will be attentive to any news.

    Best regards.

    @nazar

    Hi there,

    Could you add some extra data to your wishlist items ?

    I trued the filter you mentioned (yith_wcwl_add_to_wishlist_params) but without success !

    Appreciate if you can share a solution.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add custom meta to the product while adding to the wishlist’ is closed to new replies.