• altmoscow

    (@altmoscow)


    Hello Dear Friends!
    Thanks a lot for great theme!
    I have the following question:
    I use OceanWP theme and Woocommerce plugin.
    Could you answer, it’s possible to change text “Add to cart” at button and also change the link of this button? I want change text to “Buy one click” and use link to page with Contact Form 7 for order. Also if it possible I want to change it for Floating bar too.
    How can I do it?
    Thank you so much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Amit Singh

    (@apprimit)

    Hello,

    Try to use the plugin and check it works or not – https://www.ads-software.com/plugins/woo-custom-add-to-cart-button/

    Thread Starter altmoscow

    (@altmoscow)

    @apprimit Hello, thank you, but this plugin can change only button text, not URL.??

    Amit Singh

    (@apprimit)

    Hello,

    You can try plugin to add your custom URL link for the products – WooCommerce Add to Cart Custom Redirect plugin

    or add the below code to the functions.php file of the child theme to change the link for all the Add to cart button

    function redirect_after_add_to_cart( $url ) {
        return esc_url( 'add your url here' );
    }
    add_filter( 'woocommerce_add_to_cart_redirect', 'redirect_after_add_to_cart', 99 );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom link for Add to cart button’ is closed to new replies.