Home Forums WoodMart – Premium Template Wishlist button

This topic contains 4 replies, has 3 voices, and was last updated by  Dmeljon 2 weeks, 5 days ago.

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

    biz.robiul
    Customer

    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.

    Private Content Hidden
    #236689

    Hello,

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

    Kind Regards

    #238535

    Dmeljon
    Customer

    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

    You can fill this attribute with the following PHP

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

    #238557

    Dmeljon
    Customer

    Awesome.

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

You must be logged in to reply to this topic.