Tagged: hide price, woocommerce
-
AuthorPosts
-
September 1, 2014 at 11:41 am #311734
Hello,
I try to hide the prices in my shop. I found a solution at the internet that says I only have to copy this code to the functions.php of the theme:
/**
* This code should be added to functions.php of your theme
**/
add_filter(‘woocommerce_empty_price_html’, ‘custom_call_for_price’);
function custom_call_for_price() {
return ‘Preis auf Anfrage’;
}I try to use that code in the enfold-functions.php – but nothing happend – the prices are still there.
Where must this code be placed? Or is there a other solution?
THX for helping ,
Jens from Switzerland
September 1, 2014 at 12:34 pm #311758Hi Jens!
Please go to Appearance > Editor and add following lines to Functions.php file
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 ); remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10 );
Best regards,
YigitSeptember 1, 2014 at 1:37 pm #311804Hi Yigit,
can you tell me in which functions.php I have to place the code? And at which position in the functions.php file.
Thanks for your help
Jens
September 1, 2014 at 2:10 pm #311814Hey!
You can add to bottom of Functions.php file which is inside Enfold folder. You can edit the file through Apperance > Editor window as well
Cheers!
YigitSeptember 5, 2014 at 4:12 pm #314095Yigit,
thanks for your help – now it works fine at the product pages.
Unfortunately the prices are back at the next step in the shopping basket!Is it possible to hide the summary of prices in the basket too?
For your information: We need the shop only for inquiries – clients will get a seperate cost estimate per Mail!Would be great to get a solution for that problem too.
Thanks again for the great support.
Ciao
Jens
September 5, 2014 at 4:51 pm #314113Hi!
If you want to hide the prices on all pages you need to install a plugin like: http://www.woothemes.com/products/catalog-visibility-options/ . Unfortunately quite a lot of work is involved and it’s beyond the scope of our support forum.
Regards,
PeterJanuary 25, 2018 at 6:47 am #902628It seems that this solution no longer works with WooCommerce 3.x ? It was working fine on my site til the update and now I have the price at the top of my [product purchase button] content from an Avia built page: https://metalkards.com/product/deluxe-card-samples/
January 25, 2018 at 6:55 am #902637I was able to fix it on the single product page with this CSS:
.single-product .price { display: none!important;
January 25, 2018 at 11:14 am #902756Hi,
Glad that you figured it out :) also, I just want to point out that the css code you posted has missing closing }
Let us know if you need further assistance or if we can close the thread :)
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.