4
Nov
2022
These are the simple settings in WooCommerce to skip the cart page after Adding a product to the basket:
1 – From admin dashboard go to WooCommerce > Settings > Products > General >next to “Add to cart behavior” make sure the option “Redirect to the cart page after successful addition” is checked.
2 – Moving to WooCommerce > Settings > Advanced > remove the checkout page ID from the checkout field and add the checkout page ID into the add to cart field
3 – To rename the button add this code snippet somewhere in the functions of your theme:
add_filter( 'woocommerce_product_single_add_to_cart_text', 'custom_cart_btn_text' );
add_filter( 'woocommerce_product_add_to_cart_text', 'custom_cart_btn_text' );
function custom_cart_btn_text() {
return __( 'Buy Now!', 'woocommerce' );
}
You must be logged in to post a comment.
Currently managing RECUWEB an IT Company providing cloud hosting and SaaS delivery model. View all posts by Rafasashi →
nice