Home Forums WoodMart support forum Single product Wishlist

Single product Wishlist

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #373575

    dido76bg
    Participant

    Hi!
    I have managed to remove/reorder some buttons to suit my client design preferences but I could not find the right hook (action) to remove and add WISHLIST to another location. (see the attached image)

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #373690

    Hello,

    Instead of using hooks you can try using our layout builder option:
    https://xtemos.com/docs-topic/single-product-page-builder/

    Best Regards

    #373698

    dido76bg
    Participant

    Hi!

    Through Layout Builder i am not able to add custom taxonomies to the template, so I prefer to work with hooks and functions.

    So Is there a shortcode to be added or do_action function?

    Thanks

    #373743

    Hello,

    Please try using the following snippet to Remove and add the wishlist button.

     if ( class_exists( 'XTS\WC_Wishlist\UI' ) ) {
    	remove_action( 'woocommerce_single_product_summary', array( XTS\WC_Wishlist\UI::get_instance(), 'add_to_wishlist_single_btn' ), 33 );
    
    	add_action( 'woocommerce_single_product_summary', array( XTS\WC_Wishlist\UI::get_instance(), 'add_to_wishlist_single_btn' ), 20 );
    }

    Best Regards

    #373901

    dido76bg
    Participant

    Hi!

    Thanks for your replay. I have tried the code in my child theme functions.php but nothing has changed.

    I will change the instance in class-ui.php instead.

    Thanks

    #373905

    Hello,

    You are Most Welcome.

    Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.

    Have a wonderful day.

    Topic Closed.
    Best Regards.

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

The topic ‘Single product Wishlist’ is closed to new replies.