New Landing How can we help? Themeforest Theme Support Dante to hide the prices of all products all across the store

Viewing 15 posts - 1 through 15 (of 20 total)
  • Posted in: Dante
  • #71683
    GabrielFonseca
    Member
    Post count: 33

    Hi, I would like to hide the prices of all products all across the store. I used the code you have given on the Knowledgebase here: http://support.swiftideas.net/knowledgebase/how-to-hide-product-prices/

    But, it hides the price only on the product page. I need it to be hidden on the homepage and the category pages etc.

    #71737
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Have you activated catalog mode in theme options?

    – Kyle

    #71939
    GabrielFonseca
    Member
    Post count: 33

    YES i activated catalog mode in theme options

    GFV

    #72273
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hey, could you let me see your website? I will give you a custom solution 🙂

    #72277
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please try to use this php at functions.php of child theme .

    function hide_prices_dante( $price, $product ) {
      return '';
    }
    
    add_filter( 'woocommerce_get_price_html', 'hide_prices_dante',);

    Thanks 🙂
    With Best Regards
    Swift Ideas

    #72278
    GabrielFonseca
    Member
    Post count: 33
    #72285
    GabrielFonseca
    Member
    Post count: 33

    Gracias, let me try

    #72286
    GabrielFonseca
    Member
    Post count: 33
    #72288
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this css code at Admin -> Theme Options -> Custom CSS => Here put this code and update options
    span.price{display:none}

    Thanks 🙂
    With Best Regards
    Swift Ideas

    #72290
    GabrielFonseca
    Member
    Post count: 33

    Ho!

    How and where can i do this?

    Gracias

    #72293
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Wordpress Admin Dashboard -> Theme Options -> Custom CSS
    Thanks 🙂
    With Best Regards
    Swift Ideas

    #72305
    GabrielFonseca
    Member
    Post count: 33

    GRACIAS!!!
    IT DOESNT WORK

    This is i have in WordPress Admin Dashboard -> Theme Options -> Custom CSS

    .woocommerce div.product .summary p.price, .woocommerce-page div.product .summary p.price, ul.products li.product .price, .woocommerce table.shop_table tr td.product-price, .woocommerce table.shop_table .product-name .price, .woocommerce div.product form.cart .group_table td.price { display: none;}

    .panel:nth-child(2) {
    display: none;
    }
    #product-accordion .accordion-group, .product_meta .leave-feedback {
    display: none!important;
    }
    #product-accordion .accordion-group:first-child {
    display: block!important;
    }

    function hide_prices_dante( $price, $product ) {
    return ”;
    }

    add_filter( ‘woocommerce_get_price_html’, ‘hide_prices_dante’,)
    span.price{display:none}

    #72369
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please remove this code from here because its breaking all code .

    function hide_prices_dante( $price, $product ) {
    return '';
    }
    
    add_filter( ‘woocommerce_get_price_html’, ‘hide_prices_dante’,)

    Thanks

    #72745
    GabrielFonseca
    Member
    Post count: 33

    Done!

    `.woocommerce div.product .summary p.price, .woocommerce-page div.product .summary p.price, ul.products li.product .price, .woocommerce table.shop_table tr td.product-price, .woocommerce table.shop_table .product-name .price, .woocommerce div.product form.cart .group_table td.price { display: none;}

    .panel:nth-child(2) {
    display: none;
    }
    #product-accordion .accordion-group, .product_meta .leave-feedback {
    display: none!important;
    }
    #product-accordion .accordion-group:first-child {
    display: block!important;
    }
    span.price{display:none}

    BUT i still view the prices

    #72746
    GabrielFonseca
    Member
    Post count: 33
Viewing 15 posts - 1 through 15 (of 20 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register