Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor angelleye

    (@angelleye)

    @kcppdevelopers, do we have a hook for this in place right now?

    Hello @nichetom,

    Below is code it will “Proceed to Paypal” to “Place Order Now” button text.

    Add to the functions.php file of your theme

    add_filter( 'woocommerce_order_button_text', 'woo_custom_order_button_text' ); 
    
    function woo_custom_order_button_text() {
        return __( 'Place Order Now', 'woocommerce' );
    }

    Thanks!

    Plugin Contributor angelleye

    (@angelleye)

    @nichetom, looks like @kcppdevelopers provided you with a snippet there that uses a standard WooCommerce filter hook to get it done. I had a feeling that would be the case. Just a general Woo feature not specific to our plugin. ??

    How can I used this snippet with my Custom CSS plugin?

    Plugin Contributor angelleye

    (@angelleye)

    @smilye, it wouldn’t be something you do within a plugin. You can just add the snippet above to your theme’s functions.php file and it should work the same as mentioned above.

    Where do I need to add this code?
    I added this to the end of the function.php file but nothing changed.

    Plugin Contributor angelleye

    (@angelleye)

    @smilye, You’ll need to read up on how to use hooks in WordPress and play around with it then. There’s only so much we can provide in free support here, and this is really more general WordPress than specific to our plugin.

    All I can tell you is to make sure you’ve put that in the correct functions.php file, and make sure you’ve uploaded it. For example, if you’re running a child theme you would need to place it there.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘"Proceed to Paypal" button text’ is closed to new replies.