A
A
AltaiR2016-09-14 11:32:39
Web development
AltaiR, 2016-09-14 11:32:39

How to change the button that appears when adding a product to the cart in woocommerce?

In the product catalog, when adding a product to the cart, the link "Go to cart" appears below. 9297c6f941604e7c8a39a311ee18864b.png
Is it possible to make this link appear in the "add to cart" button by replacing its text, as in the screenshot below:?
5d4f148522ba4e74892970d00d24daa4.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Filippov, 2017-08-29
@Webram

I don’t know where the inscriptions are edited there, but the position of the button can be changed. Added this css code:

a.added_to_cart.wc-forward {
position: absolute;
margin: 0 -10em;
}

There is a translation file in the /wp-content/languages/plugins directory
, you can edit it woocommerce-ru_RU.po We edit the Poedit
prog file , you also probably need to compile our edition into the woocommerce-ru_RU.mo file =)

D
denism300, 2018-10-23
@denism300

after the product is added, the "add to cart" button is assigned the class added. Hide it with styles, and edit the "go to cart" button with the same styles.
text can be changed using the LocoTranslate plugin.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question