• Hi there,

    Is there any way that I can add meta to a wishlist relationship? That is to say my user adds product ids 1,2,3 to their default wishlist. Then they want to add notes to the relationship, so the note isn’t to item 1, it’s to “item 1 on the default wishlist” is that possible?

    This plugin has been a life saver and the support has been fantastic, we just bought the paid version and need to upgrade from the free version just on the support we received for free.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Mat Gargano

    (@matstars)

    Just as a note as I come up with contingency plans, I can always store the meta as an option in something like {WISHLIST_UNIQUE_IDENTIFIER}_{META_KEY}

    Is YITH_WCWL_Wishlist->ida unique identifier? What aboutYITH_WCWL_Wishlist->token ?

    • This reply was modified 3 years, 10 months ago by Mat Gargano.
    • This reply was modified 3 years, 10 months ago by Mat Gargano.
    Plugin Author YITHEMES

    (@yithemes)

    Hi again Mat

    To be honest with you, Item Meta is something that we will probably add in the near future, in order to give support to plugins that need to store in the wishlist additional data other than product ID (Composite products, for example)

    Our implementation will probably focus on a dedicated table, and the use of metadata suite of functions from WordPress
    We will modify YITH_WCWL_Items_Data_Store class to be our unique access to the meta of an item

    Anyway, I understand if you cannot wait for this changes to be developed
    Using options (or even product meta) could be a good solution for now; both ID and token are unique identifiers of the wishlist, with the only difference being that token is more focused on external usage, while ID should be used for internal processing (and for this reason this is what I suggest you to use)

    Finally, I’d want to point out, that there is an official github page of this project, in case you feel like contributing, or you want to add changes to plugin ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding Meta to Wishlist Relationships?’ is closed to new replies.