Support » Plugin: Product Variation Table for WooCommerce - PVT » Change Out of Stock button text

  • Resolved malinky

    (@malinky)


    Hi there, is there a way to change the Out of Stock button text? I’d like to change it to Currently licensed.

    Many thanks,
    Karen

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WPXtension

    (@wpxteam)

    Hi Karen,

    Thanks for reaching out to us. Please try the below code at your child theme’s functions.php or use it as a snippet using the Code Snippets plugin-

    add_filter('pvtfw_row_cart_btn_oos', function( $text, $product_id, $cart_url, $product_url, $variant_id){
    	$new_text = __('Currently licensed', 'product-variant-table-for-woocommerce');
    	$btn = sprintf(
    		'<button class="pvtfw_variant_table_cart_btn button alt" disabled>
    						<span class="pvtfw-btn-text">%s</span> 
    						<div class="spinner-wrap"><span class="flaticon-spinner-of-dots"></span></div>
    						</button>',
    	   $new_text
    	);
       return $btn;
    }, 10, 5);

    Please let us know if you wanted something like this or not.

    Hope to hear from you soon!

    Thread Starter malinky

    (@malinky)

    That worked like a charm. Thanks so much for your help! 😀

    Plugin Author WPXtension

    (@wpxteam)

    Hi,

    I am very glad that it worked.

    BTW, if you found this plugin and my support helpful; my humble request to you to write your beautiful words here.

    Thanks in advance for your beautiful words

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change Out of Stock button text’ is closed to new replies.