• Hey,
    I want to completely remove the traditional “Add to cart”, and display ONLY “buy now”.
    Will using this, remove your button as well?:
    /**
    * Main instance of WooCommerce.
    *
    * Returns the main instance of WC to prevent the need to use globals.
    *
    * @since 2.1
    * @return WooCommerce
    */
    function WC() {
    remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’);
    remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_add_to_cart’);
    return WooCommerce::instance();
    }

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘replace “add to cart” with buy now’ is closed to new replies.