Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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

    #311758

    Hi 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,
    Yigit

    #311804

    Hi 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

    #311814

    Hey!

    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!
    Yigit

    #314095

    Yigit,
    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

    #314113

    Hi!

    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,
    Peter

    #902628

    It 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/

    #902637

    I was able to fix it on the single product page with this CSS:

    .single-product .price {
        display: none!important;
    #902756

    Hi,

    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

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.