First, I’m a bit of a noob. I’m not a web developer/programmer. But I’m also not an idiot and have played with functions.php (just a little bit).
here is the page:
https://tefl-online-course.com/checkout-lp/?add-to-cart=228
When users click on a link on my Landing Page it adds the product to the cart automatically and takes them to the checkout page.
Now, I would like to do the following.
-
Remove/hide the “View Cart” button. This is the most important…I don’t want people leaving this checkout page.
-
I wouldn’t mind removing all of the messages: a. successfully added to cart. b. returning customer & c. have a coupon but not hugely important.
For the add to cart message :
For coupon and return customer , just disabled them on woocommerce options page
EDIT : Fix for lastest version (2.4.6)
In latest version of woocommerce there is two ways:
You can hide from css or inside the woocommerce/include/wc-template-functions
From product page and single page both buttons will be remove immediately.
Thanks,
Tripathi
Another way to hide the “View Cart” button is to add a “display:none” in the style.css of your child theme
Try the following :
or
Add this CSS in your wp-admin -> appearance -> customize -> custom css :