Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1193192

    Hi guys,

    how can display a message „Do you have a coupon?“ instead of the input field in shopping cart? Thanks!

    Best,
    El

    #1193352

    Hey El,
    I assume you would like the “Do you have a coupon?” to replace the placeholder
    2020-03-15_173202.png
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_script(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
    $('input#coupon_code').attr('placeholder', 'Do you have a coupon?');
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_script');

    Best regards,
    Mike

    #1193559

    Actually I would prefer it to be a link that only becomes an input and submit combo if you click it. Saleswise it would be much better to have it more sublime. Best, El

    #1193649

    Hi El,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Victoria

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