Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Antonio La Rocca

    (@therock130)

    Hi there

    you can explicitely pass wishlist_id as an attribute of the shortcode, as follows

    [yith_wcwl_wishlist wishlist_id="1234"]
    

    Where 1234 is the wishlist id

    Hope this helps ??

    Thread Starter zatanx

    (@zatanx)

    I want to show wishlist_id for current user.

    [yith_wcwl_wishlist wishlist_id="?"]

    • This reply was modified 3 years, 3 months ago by zatanx.
    • This reply was modified 3 years, 3 months ago by zatanx.
    • This reply was modified 3 years, 3 months ago by zatanx.
    • This reply was modified 3 years, 3 months ago by zatanx.
    • This reply was modified 3 years, 3 months ago by zatanx.
    Plugin Support Antonio La Rocca

    (@therock130)

    In this case you just don’t need to provide any wishlist_id

    When no ID is specified, system will first try to uderstand which wishlist to print from query-vars in the url; if it can’t fine any of those, it will fallback to current user’s wishlist ??

    Thread Starter zatanx

    (@zatanx)

    example
    like this
    https://xxxxx.com/wishlist/view/YFIA4FNH4DHS/

    What shortcode should I use?

    • This reply was modified 3 years, 3 months ago by zatanx.
    Plugin Support Antonio La Rocca

    (@therock130)

    Hi there

    when the wishlist token is in the url, you don’t have to submit any wishlist_id to the shortcode
    As a general note, you shouldn’t ever use wishlist_id in the shortcode, unless you want to print a specific wishlist in the page

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to use wishlist_id?’ is closed to new replies.