only plugin to break with gtranslate
-
The EPO plugin is a great plugin we have used for years on many sites. Unfortunately there is a very persistant problem when using this plugin alongside a translator plugin like gtranslate.
While I realise that gtranslate is probably responsible here, since the EPO plugin is the only plugin that throws problems I assume the issue may (also) have something to do with the way EPO is coded.
In particular the use of the <# and #> in the EPO code seems to throw things off.Is there a way to fix this ?
here is a screen copy of a normal woocommerce product price
Final total
€109.900and here it is in any translated language.
<# if (data.show_unit_price==true){ #> Unit price €109.900 <# } #> <# if (data.show_options_total==true){ #> Options amount €0 <# } #> <# if (data.show_fees_total==true){ #> Fees amount €0 <# } #> <# if (data.show_extra_fee==true){ #> Extra fee <# } #> <# if (data.show_final_total==true){ #> Final total <# if (data.customer_price_format_wrap_start) {#> <# } #>€109.900<# if (data.customer_price_format_wrap_end) {#> <# } #> <# } #>
page source in native language ( notice the < ; # I added some spaces to prevent wordpress from converting them to <# )
<script class=”tm-hidden” type=”text/template” id=”tmpl-tc-final-totals”><dl class=”tm-extra-product-options-totals tm-custom-price-totals”>
< ; # if (data.show_unit_price==true){ #> ; <dt class=”tm-unit-price”>data.unit_price
</dt>
<dd class=”tm-unit-price”>when translated by gtranslate
<script class="tm-hidden" type="text/template" id="tmpl-tc-final-totals"><dl class="tm-extra-product-options-totals tm-custom-price-totals"> <# if (data.show_unit_price==true){ #> <dt class="tm-unit-price"><code>data.unit_price</code></dt> <dd class="tm-unit-price"> </script>
- This topic was modified 3 years, 7 months ago by .
- This topic was modified 3 years, 7 months ago by .
- This topic was modified 3 years, 7 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘only plugin to break with gtranslate’ is closed to new replies.