Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Where to translate "Apply coupon"?
- This topic has 17 replies, 2 voices, and was last updated 4 years, 4 months ago by logan.
-
AuthorPosts
-
November 19, 2019 at 4:25 pm #234019BaldamusSpectatorHi There, I cannot find the file in which I can translate the entry "Apply coupon" etc. into German with Loco Translate. Thank you for a short help. Michael ScreenshotNovember 19, 2019 at 5:35 pm #234028BaldamusSpectatorSorry. Here you find our site: https://kiport.deNovember 20, 2019 at 8:12 am #234104loganMemberHello, this is coming from the theme folder. find this in wplms theme and don't forget to sync and save the po | mo files.November 20, 2019 at 8:24 am #234110BaldamusSpectatorHi Logan, Loco Translate don't find the strings "Apply coupon" etc.. Neither in WPLMS theme nor in WPLMS Child Theme. What I'm doing wrong? MichaelNovember 21, 2019 at 5:53 am #234206loganMember
hello,
use this code in wp-admin >> wplms >> footer >> google analytics.
<script>
$(document).ready(function() {
$('.woocommerce-cart .woocommerce .coupon button.button').text('New apply code');
$('.woocommerce-cart .woocommerce input#coupon_code').attr('placeholder', 'new coupon code');
$('.woocommerce-cart .woocommerce button[name="update_cart"]').text('new update cart');
});
</script>
change the strings according to your requirement.
November 21, 2019 at 3:11 pm #234282BaldamusSpectatorHi logan, I'm sorry, but there is no possibility to place the script code. Can I use the code in another way? See screenshot.November 22, 2019 at 5:45 am #234328loganMemberHello,
Thank you very much for your feedback.
I would like to request temporary access (wp-admin URL and credentials) in a private reply to your site to take a better look at the issue. The information you will enter is private which means only you and I can see and have access to it.
Note: plugins/themes should be updated to the latest version which is 3.9.7November 22, 2019 at 3:30 pm #234402BaldamusSpectatorThis reply has been marked as private.November 23, 2019 at 1:49 pm #234469loganMemberHello, please add this code in the customizer.php, customizer plugin. add_action('wp_footer', function(){ ?> <script> $(document).ready(function() { $('.woocommerce-cart .woocommerce .coupon button.button').text('New apply code'); $('.woocommerce-cart .woocommerce input#coupon_code').attr('placeholder', 'new coupon code'); $('.woocommerce-cart .woocommerce button[name="update_cart"]').text('new update cart'); }); </script> <?php });November 24, 2019 at 1:25 pm #234515BaldamusSpectatorHi logan, I tried the code in wplms-customizer.php, but I can't see any changes. All caches have been cleared. What am I doing wrong?November 25, 2019 at 6:49 am #234572loganMembertry adding this code, i have tested this is working.Hello,
please add this code in the customizer.php, customizer plugin.
add_action('wp_footer', function(){
?>
<script>
jQuery(document).ready(function($) {
$('.woocommerce-cart .woocommerce .coupon button.button').text('New apply code');
$('.woocommerce-cart .woocommerce input#coupon_code').attr('placeholder', 'new coupon code');
$('.woocommerce-cart .woocommerce button[name="update_cart"]').text('new update cart');
});
</script>
<?php
});
i am not able to edit your files, i think i have not the valid capabilitites. refer: http://prntscr.com/q1lll1November 25, 2019 at 7:04 am #234576BaldamusSpectatorHi logan, Now it works fine. Thanks for your support. Greatings MichaelNovember 25, 2019 at 8:15 am #234584BaldamusSpectatorHi logan, I'm sorry, but there is another problem: If I enter a code and click the button to redeem the voucher, everything will be displayed in English again. Also if I remove the voucher again. All caches are cleared. You can try it by yourself with the code "vip-10"November 26, 2019 at 7:59 am #234736loganMemberHello, yes, I understood the condition after ajax load it loses its control. please install the wplms-blank-child theme and activate it. then give me the strings for the issue. string 1 == translated string 1 string 2 == translated string 2 string 3 == translated string 3 i will do the rest and share a video later.
note: i will need your admin URL and credentials for this too.November 26, 2019 at 10:20 am #234760BaldamusSpectatorThis reply has been marked as private. -
AuthorPosts
- The topic ‘Where to translate "Apply coupon"?’ is closed to new replies.