Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author ThemeHigh

    (@themehigh)

    Let me answer your questions one by one.

    >>I want to translate: Email is a required field into another language

    Unfortunately, field name translation in the validation message is not possible with the current version of our plugin. We have forwarded it to our technical team and it will be available in the next version of our plugin.

    >>how to force enter Email to add to cart.

    You can add the required message for the input field by adding the below code in your child theme’s functions.php file.

    add_action('wp_footer', 'thwepo_add_required_prop', 99);
    function thwepo_add_required_prop(){
    	if(is_product()){
    		?>
    		<script type="text/javascript">
    		(function($){
    			$("#email_canva").prop('required',true);
    			$('#email_canva').attr("oninvalid","this.setCustomValidity('Your required message')");
    		})(jQuery, window, document)
    		</script>
    		<?php
    	}
    }

    Thank you!

    Thread Starter WinGiaRe.Com

    (@wingiare)

    Hi, awesome!!
    But I have many fields email_canva, email_ex1, mail_vip2… how do I insert?
    Thank you.

    Thread Starter WinGiaRe.Com

    (@wingiare)

    I have entered Email but cannot add to cart.

    View post on imgur.com

    Plugin Author ThemeHigh

    (@themehigh)

    Your issue needs a detailed check. Can you please raise a ticket through our website? We hope our technical team will be able to help you.

    Thank you!

    Thread Starter WinGiaRe.Com

    (@wingiare)

    View post on imgur.com

    Hi, thank you for your response.
    I have many Fields, I combine email_canva, email_autodesk, email_adobe into 1 code fuction.

    https://wingiare.com/adobe-creative-cloud-all-apps
    https://wingiare.com/canva-pro
    https://wingiare.com/autocad-ban-quyen

    i edited the code like this, but got error.

    View post on imgur.com

    Thank you.

    Plugin Author ThemeHigh

    (@themehigh)

    We are not able to recreate the issue in our testing environment. We believe that it is a site specific issue. Could you please raise a ticket through our website? We hope our technical team will be able to help you.

    Thank you!

    Plugin Author ThemeHigh

    (@themehigh)

    We hope your issue is resolved.

    We are going to mark this thread as resolved.

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to translate language: Email is a required field.’ is closed to new replies.