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

    Hi, i want to add a aditionall request at my shopping page. I make personalised passport cover. I sell them at http://www.djoena.nl . I can put your name on the passportcover and i want a field for my customer where they can add there name is this possible? I want that field to show conditionally means when they select nametagcolor it should show then
    Thanks

    #933698

    passportcover and field

    #933771

    Hi,

    I couldn’t see the image you added, please upload it in https://imgur.com/ and post the link it generates here.

    Best regards,
    Nikko

    #933779

    Please check the image at https://djoena.nl/kriesihelp/

    #934280

    Hi,

    Thank you for the info. Please try this script in the functions.php file.

    add_action('wp_footer', 'ava_custom_script_naam_of_woord');
    function ava_custom_script_naam_of_woord(){
    ?>
    <script type="text/javascript">
    (function($) {
        function a() {
            $('#naam_of_woord_').css('display', 'none');
    
            $('#kleur-naamtag').on( 'change', function() {
                var selected = $(this).val();
                if(selected != '') {
                    $('#naam_of_woord_').css('display', 'block');
                } else {
                    $('#naam_of_woord_').css('display', 'none');
                }   
            });
        }
        
        a();
    })(jQuery);
    </script>
    <?php
    }

    Don’t forget to remove the cache before checking the page.

    Best regards,
    Ismael

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