Home Forums WoodMart support forum Wishlist button

Wishlist button

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #236680

    biz.robiul
    Participant

    I am using elementor pro and create a custom product details page but I can’t find anything for the wishlist button, So please provide me a shortcode for the wishlist button or tell me how to add this button to the product details page.

    #236689

    Artem Temos
    Keymaster

    Hello,

    Unfortunately, we don’t have a shortcode for the Wishlist button to be used in other places.

    Kind Regards

    #238535

    Dmeljon
    Participant

    i need this also,
    i can create a shortcode using this:

    <div class="woodmart-wishlist-btn wd-action-btn wd-wishlist-btn wd-style-text">
    	<a href="/product/simona-embroidered-dress-2/" data-key="15f83861b7" data-product-id="2262" data-added-text="Browse Wishlist"></a>
    </div>

    but i see that a unique data-key is being generated. is there a way to insert it using php?

    #238548

    Artem Temos
    Keymaster

    You can fill this attribute with the following PHP

    data-key="<?php echo esc_attr( wp_create_nonce( 'woodmart-wishlist-add' ) ); ?>"

    #238557

    Dmeljon
    Participant

    Awesome.

Viewing 5 posts - 1 through 5 (of 5 total)