WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » [Resolved] How to change url "add to cart"?

[Resolved] How to change url "add to cart"?

Viewing 1 replies (of 1 total)
  • Find the way, in function.php add this code^

    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
    
    add_action( 'woocommerce_after_shop_loop_item', 'my_woocommerce_template_loop_add_to_cart', 10 );
    
    function my_woocommerce_template_loop_add_to_cart() {
        echo '<form action="' . get_permalink() . '" method="get">
                <button type="submit" class="single_add_to_cart_button button alt">Купить</button>
              </form>';
    }

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] How to change url "add to cart"?’ is closed to new replies.
Skip to toolbar