Hey Team,
how to change “proceed to checkout text” In wooCommerce cart page? Like to do the same with “Checkout” in the cart icon.
Thank you!
Thomas
Hey ThomSchu,
Please add this code at the bottom of your child theme’s functions.php file (just change Proceed to checkout):
function woocommerce_button_proceed_to_checkout()
{
$checkout_url = wc_get_page_permalink( 'checkout' );
?>
<a href="<?php echo $checkout_url; ?>" class="checkout-button button alt wc-forward">
<?php _e( 'Change this text', 'woocommerce' ); ?>
</a>
<?php
}
You can download and find instructions on how to use a child theme here: https://kriesi.at/documentation/enfold/child-theme/
Best regards,
Nikko
Hey Nikko,
I use the plugin “Snippts”. It says:
Error on line 2: Cannot redeclare function woocommerce_button_proceed_to_checkout.
Hi ThomSchu,
Can you try to check if there’s another woocommerce_button_proceed_to_checkout function in your functions.php file?
Best regards,
Nikko
Perfect. Works :)
Also: When I hover abogve the chart icon (right up corner), it says “Checkout”… how can I change that
Hi,
To change the text words on your site I recommend using the Say What Plugin.
Try adding the text you would like to replace, and your new text, and use ‘avia_framework’ as the Text Domain.
Best regards,
Jordan Shannon
Hey Jordan,
didn’t work. What did I do wrong?
Original string = Checkout
Text domain = avia_framework
Text context
Replacement string = Get your quote
THX
Thomas
Hey Nikko!
100 points. That was the correct answer.
Again: Thank you!
Hi ThomSchu,
We’re glad that we could help :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko