Home Forums Themes Pithree remove checkout

remove checkout

  • Author
  • #44269


    //Hide price
    add_filter( ‘woocommerce_get_price_html’, ‘woocommerce_hide_price’ );
    function woocommerce_hide_price( $price ){
    return ”;

    //Hide buy button
    add_action( ‘init’, ‘woocommerce_hide_buy_button’ );
    function woocommerce_hide_buy_button(){
    remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 10 );
    remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_add_to_cart’, 30 );

    please help me remove “Add to cart”, “checkout” and other related with shop online. the codes above didn’t work. I only need to show all my products with categories and subcategories.

    thank you!

Cannot reply in this topic, If you have any issue, please create new topic