Last active
November 4, 2017 06:11
-
-
Save bhavik-kiri/e9c360b19da96dfe7154933540cff615 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'woocommerce_before_add_to_cart_button', 'add_fields_before_add_to_cart' ); | |
function add_fields_before_add_to_cart( ) { | |
?> | |
<table> | |
<tr> | |
<td> | |
<?php _e( "Name:", "aoim"); ?> | |
</td> | |
<td> | |
<input type = "text" name = "customer_name" id = "customer_name" placeholder = "Name on Gift Card"> | |
</td> | |
</tr> | |
<tr> | |
<td> | |
<?php _e( "Message:", "aoim"); ?> | |
</td> | |
<td> | |
<input type = "text" name = "customer_message" id = "customer_message" placeholder = "Your Message on Gift Card"> | |
</td> | |
</tr> | |
</table> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment