Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1122325

    Hi, is it possible to change the text of “Coupon code” on the cart page?
    I also want to change the button apply coupon, for a new text.
    Thanks!!

    #1122606

    Hey Angelo_Sule,
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_script(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
      $("#top.woocommerce-cart .coupon input#coupon_code").attr("placeholder", "Coupon Code");
      $('#top.woocommerce-cart button.button[name="apply_coupon"]').text('Apply Coupon');
      });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_script');

    Please adjust the text “Coupon Code” & “Apply Coupon” to suit, Then clear your browser cache and any cache plugin, and check.

    Best regards,
    Mike

    #1122729

    Hi,
    I did that and I am not seeing changes. I have cleared the cache. Sorry, It does not work.
    What else can I do?
    Thank you.

    #1122853

    I have solved it by FTP. Thank you very much for everything!!!

    #1122885

    Hi Angelo_Sule,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.