4
Hello I wanted with Jquery to pick up all the product_payment of a shop and change.
Changing: In cash R $ 137,66 discounted or 12x with interest of R $ 13,69. To: Cash R $ 137,66 discounted or 12x R $ 13,69.
It has to be by Jquery, because I don’t have access to the code. (I can only use Javascript to change)
<div id="product_payment"> <br>
<span class="txt-avista"> à <span> vista </span></span>
<strong class="preco-avista precoAvista">R$
<span>
<span>137<span>,<span>66</span></span></span>
</span>
</strong>
<span class="txt-com-desconto"> com <span> desconto </span></span>
<!-- ||137.66|0.00|144.90|11_09_-15_57_59|80 --><br>
<span class="preco-parc2">
<span class="txt-corparcelas">ou
<strong class="color">12x </strong>
<span class="preco-parc2"><span class="txt-comjurosde"> com juros </span> de
<strong>R$
<span>
<span>13<span>,<span>69</span></span></span>
</span>
</strong>
<span></span>
</span>
</span>
</span>
</div>
How can I change the contents of da div using Jquery?
Why don’t you have access to the code ?
– Diego Souza
Simple, I’m using Twig, it’s an e-commerce. Not everything can change in HTML.
– Felipe Jorge
Do you have access to FTP and the folder tree? You have access to JS, but not HTML ? ...
– Diego Souza
That’s how it works Diego Souza, some E-commerce use Twig, Twig is used to change the E-commerce template, so you can change almost everything, but some things are limited. ( Because Twig is used to change the layout of the template). In this case the store I am using is Tray and I am using opencode to develop. For more information see Here: http://dev.tray.com.br/hc/pt-br/articles/206159587-Initindo-um-tema I don’t think this information was necessary. That is why I did not put this in the question because it would only confuse who would answer.
– Felipe Jorge