T
T
Timur Bogdalov2021-10-21 13:47:25
CMS
Timur Bogdalov, 2021-10-21 13:47:25

How to change element text in product cards?

There is a site on tilda. There are ST305N product cards. When you set the number of products in the admin panel to 0, then "Out of stock" is written under the price and in the pop-up as well. The question is, is it possible to change this text to something else? Or, nevertheless, the functionality does not imply such a setting, because he himself looked in the parameters and did not find it. Sorry for the tongue in cheek.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
andand44, 2021-10-21
@andand44

It is possible to try to change crutches by means of styles. If there is a separate class for "Out of stock".
https://jsfiddle.net/fansy7w1/
Or use jquery to search by text and change with.text()

V
Vitaliy Grabchak, 2021-10-24
@gravitaliy

As part of the input you provided, the script would look like this:

$(document).ready(function() {
  setTimeout(function() {
    $('.js-store-prod-sold-out').text('Цена по запросу');
    $('.js-store-prod-popup-buy-btn-txt').text('Цена по запросу');
  }, 500);
});

But have you fully described the task? )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question