Answer the question
In order to leave comments, you need to log in
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
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()
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);
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question