Woocommerce结帐页面:删除查看购物车按钮&其他讯息 [英] Woocommerce checkout page: remove view cart button & other messages

查看:75
本文介绍了Woocommerce结帐页面:删除查看购物车按钮&其他讯息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我有点菜鸟。我不是网络开发人员/程序员。但是我也不是一个白痴,只是玩过functions.php(有点)。

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).

这是页面:

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.


  1. 删除/隐藏查看购物车按钮。这是最重要的...我不希望人们离开此结帐页面。

  1. Remove/hide the "View Cart" button. This is the most important...I don't want people leaving this checkout page.

我不介意删除所有消息:成功添加到购物车。 b。回头客C。有优惠券但不是很重要。

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.


推荐答案

另一种隐藏优惠券的方法查看购物车按钮用于在子主题的style.css中添加 display:none

Another way to hide the "View Cart" button is to add a "display:none" in the style.css of your child theme

尝试以下操作:

.added_to_cart .wc-forward{
    display: none !important;
}

a.added_to_cart{
    display: none !important;
}

这篇关于Woocommerce结帐页面:删除查看购物车按钮&其他讯息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆