Support » Plugin: YITH WooCommerce Wishlist » How to use wishlist_id?

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 4 months, 3 weeks ago by zatanx.
    • This reply was modified 4 months, 3 weeks ago by zatanx.
    • This reply was modified 4 months, 3 weeks ago by zatanx.
    • This reply was modified 4 months, 3 weeks ago by zatanx.
    • This reply was modified 4 months, 3 weeks 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 4 months, 3 weeks 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)
  • You must be logged in to reply to this topic.