• Resolved eenger

    (@eenger)


    Hi! Some of my products do not have prices listed on the product page, as they are custom-order only and the price varies based on what the customer adds. But because I have left the price blank (I am using a plugin on the product page to say “contact for estimate”), these products are listed as FREE on the wishlist. Is there a code I can use that will change these products to say “Contact for estimate”?

    Thank you!

    • This topic was modified 3 years, 9 months ago by eenger.

    The page I need help with: [log in to see the link]

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

    (@therock130)

    Hi there

    You can use the following filter yith_wcwl_item_formatted_price, as shown below

    add_filter( 'yith_wcwl_item_formatted_price', function ( $formatted_price, $base_price ) {
    	if ( ! $base_price ) {
    		return 'Contact for estimate';
    	}
    
    	return $formatted_price;
    }, 10, 2 );

    You can try to add the previous snippet at the end of functions.php file of your theme or child

    Thread Starter eenger

    (@eenger)

    That worked! Thank you so much!

    Plugin Support Antonio La Rocca

    (@therock130)

    You’re welcome

    We are doing our best to improve our plugins. Our target is to develop and release the best free plugins for WooCommerce, but to achieve this we need your help. Please leave a good review to support us and help our growth

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Product Listed as “free” in Wishlist’ is closed to new replies.