N
N
Nikolai Dmitriev2017-07-23 16:10:43
WordPress
Nikolai Dmitriev, 2017-07-23 16:10:43

How to add note to WooCommerce price?

By default, the price is displayed as "150 R".
It is required to add an explanation to the price "150 R/m2"
How can this be implemented and change the addition to the price depending on the category? Is there a ready solution in the form of a plugin?
Website for floor coverings and accessories.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mike, 2017-07-23
@MikeKosulin

Open the source code of the page, see what class you have for the currency symbol. And use the :after pseudo-element to add text via content .
For example, in the standard Woocommerce Storefront theme, the same is done through CSS:

.product_cat-for-home span.woocommerce-Price-currencySymbol:after {
    content: "/м2";
}

Where:
.product_cat-for-home
- product category class,
span.woocommerce-price-currencySymbol
- span tag selector for currency symbol.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question