Hi guys,
how can display a message „Do you have a coupon?“ instead of the input field in shopping cart? Thanks!
Best,
El
Hey El,
I assume you would like the “Do you have a coupon?” to replace the placeholder
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
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
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