Woo: How to change CHECKOUT text button on Oxy Ultimate Woo Cart

smartsovereign
29 May 2022

Fo those using Oxy Ultimate Woo Cart component, this is a snippet to change the text on the checkout button to anything you need.

This is courtesy of the developer and work perfectly, see original here

<?php

add_filter( 'gettext_woocommerce', 'ouwoo_checkout_button_text', 10, 3);
function ouwoo_checkout_button_text( $translated_text, $text, $domain ) {
  switch( $translated_text ) {
    case 'Checkout' : 
      $translated_text = "ENTER YOUR TEXT HERE";
      break;
  }
  return $translated_text;
}

Was this article helpful?

Tags

Categories

Never miss new post again

Subscribe and get list of new posts in your inbox

Click to Copy