-
AuthorPosts
-
April 23, 2021 at 9:03 pm #1296415
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!
ThomasApril 24, 2021 at 3:25 pm #1296523Hey 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,
NikkoApril 26, 2021 at 1:21 pm #1296759Hey Nikko,
I use the plugin “Snippts”. It says:
Error on line 2: Cannot redeclare function woocommerce_button_proceed_to_checkout.April 26, 2021 at 1:25 pm #1296761Hi ThomSchu,
Can you try to check if there’s another woocommerce_button_proceed_to_checkout function in your functions.php file?
Best regards,
NikkoApril 26, 2021 at 3:15 pm #1296776Perfect. Works :)
Also: When I hover abogve the chart icon (right up corner), it says “Checkout”… how can I change thatApril 26, 2021 at 10:32 pm #1296840Hi,
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 ShannonMay 4, 2021 at 9:26 pm #1298374Hey Jordan,
didn’t work. What did I do wrong?
Original string = Checkout
Text domain = avia_framework
Text context
Replacement string = Get your quote
THX
ThomasMay 5, 2021 at 7:59 am #1298450May 5, 2021 at 1:20 pm #1298541Hey Nikko!
100 points. That was the correct answer.
Again: Thank you!May 5, 2021 at 1:26 pm #1298549Hi ThomSchu,
We’re glad that we could help :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘“Proceed to checkout text”’ is closed to new replies.
