• hi
    First, I apologize if my English is not good.
    I wanted make a few changes in shopping cart and i find the relevant codes from sites.
    i put these codes in functions.php and it changes were done.
    codes :

    *
     * add option to edit elements via css class
     */
    // add_theme_support('avia_template_builder_custom_css');
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
    add_action('woocommerce_after_single_product_summary', create_function( '$args', 'call_user_func(\'comments_template\');'), 14);
    add_filter( 'woocommerce_product_tabs', 'sb_woo_remove_reviews_tab', 98);
    function sb_woo_remove_reviews_tab($tabs) {
    
     unset($tabs['reviews']);
    
     return $tabs;
    }
    
    add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 );
    function woo_rename_tabs( $tabs ) {
    
    	$tabs['description']['title'] = __( '' );		// Rename the description tab
     return $tabs;
    
    }
    
    /*
    * wc_remove_related_products
    *
    * Clear the query arguments for related products so none show.
    * Add this code to your theme functions.php file.
    */
    function wc_remove_related_products( $args ) {
      return array();
    }
    remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10, 2);
    add_filter('woocommerce_related_products_args','wc_remove_related_products', 10);
    
    add_filter( 'woocommerce_product_description_heading', 'remove_product_description_heading' );
    function remove_product_description_heading() {
    return '';
    }

    I wanted remove control Product Count button in single product page and add it in cart page and just one button be single product page and its “add to cart” . (without control Product Count )
    after user enter in cart page , from that page can change the Count of Product.

    By adding these codes are added to control the number of products in the shopping cart, but that is an issue, is a + button and – do not act.
    In fact, when i click + or – button and click update cart button ,number will be change , but it does not affect the total price.
    What should I do

    https://www.ads-software.com/plugins/woocommerce/

Viewing 15 replies - 1 through 15 (of 33 total)
Viewing 15 replies - 1 through 15 (of 33 total)
  • The topic ‘Remove control Product Count button in single product page & add it in cart page’ is closed to new replies.