version 2.0.8 released with some minor fixing

This commit is contained in:
magepeopleteam 2018-07-13 12:07:28 +00:00
parent be4b79f67c
commit c6c2a993bd
8 changed files with 176 additions and 69 deletions

View File

@ -123,3 +123,24 @@ a.button.remove-faq-row {
overflow: hidden;
display: inline-block;
}
.settings_page_mep_event_settings_page h2 {
padding-left: 10px;
}
.mep-attendee-sec-details span {
border: 1px solid #ddd;
padding: 10px;
display: inline-block;
}
.mep-attendee-sec-details .ea-label {
width: 200px!important;
font-weight: bold;
}
.mep-attendee-sec-details .ea-value {
width: 68%!important;
}
.mep-attendee-sec-details .sec {
margin: 0;
}

View File

@ -71,7 +71,11 @@ div#mep-event-accordion p {
margin: 0;
font-size: 14px;
}
.user-info-sec .dada-info .mep-user-info-sec input.mep-checkbox {
display: inline-block!important;
/* float: left!important; */
width: auto!important;
}
.mep-top-part, .mep-btn-part, .mep-content-part {
overflow: hidden;
float: none;

View File

@ -655,6 +655,7 @@ $tsizes = $values['mep_reg_tshirtsize_list'][0];
</div>
<?php
do_action('mep_after_reg_form');
}
@ -956,94 +957,137 @@ function mep_meta_box_add(){
function mep_meta_box_cb($post){
$values = get_post_custom( $post->ID );
$event_meta = get_post_custom($values['ea_event_id'][0]);
$mep_full_name = strip_tags($event_meta['mep_full_name'][0]);
$mep_reg_email = strip_tags($event_meta['mep_reg_email'][0]);
$mep_reg_phone = strip_tags($event_meta['mep_reg_phone'][0]);
$mep_reg_address = strip_tags($event_meta['mep_reg_address'][0]);
$mep_reg_designation = strip_tags($event_meta['mep_reg_designation'][0]);
$mep_reg_website = strip_tags($event_meta['mep_reg_website'][0]);
$mep_reg_veg = strip_tags($event_meta['mep_reg_veg'][0]);
$mep_reg_company = strip_tags($event_meta['mep_reg_company'][0]);
$mep_reg_gender = strip_tags($event_meta['mep_reg_gender'][0]);
$mep_reg_tshirtsize = strip_tags($event_meta['mep_reg_tshirtsize'][0]);
?>
<div class="mep-attendee-sec-details">
<div class='sec'>
<label for="my_meta_box_text"> Event: </label>
<span><?php echo $values['ea_event_name'][0]; ?> </span>
<span class="ea-label">Event: </span>
<span class="ea-value"><?php echo $values['ea_event_name'][0]; ?> </span>
</div>
<div class='sec'>
<label for="my_meta_box_text"> UserID: </label>
<span><?php echo $values['ea_user_id'][0]; ?></span>
</div>
<div class='sec'>
<label for="my_meta_box_text"> Full Name: </label>
<span><?php echo $values['ea_name'][0]; ?></span>
</div>
<div class='sec'>
<label for="my_meta_box_text">Email: </label>
<span><?php echo $values['ea_email'][0]; ?></span>
</div>
<div class='sec'>
<label for="my_meta_box_text">Phone: </label>
<span><?php echo $values['ea_phone'][0]; ?></span>
<span class="ea-label">UserID: </span>
<span class="ea-value"><?php echo $values['ea_user_id'][0]; ?></span>
</div>
<?php if($mep_full_name){ ?>
<div class='sec'>
<label for="my_meta_box_text">Addres: </label>
<span>
<span class="ea-label">Full Name: </span>
<span class="ea-value"><?php echo $values['ea_name'][0]; ?></span>
</div>
<?php } if($mep_reg_email){ ?>
<div class='sec'>
<span class="ea-label">Email: </span>
<span class="ea-value"><?php echo $values['ea_email'][0]; ?></span>
</div>
<?php } if($mep_reg_phone){ ?>
<div class='sec'>
<span class="ea-label">Phone: </span>
<span class="ea-value"><?php echo $values['ea_phone'][0]; ?></span>
</div>
<?php } if($mep_reg_address){ ?>
<div class='sec'>
<span class="ea-label">Addres: </span>
<span class="ea-value">
<?php echo $values['ea_address_1'][0]; ?>
</span>
</div>
<?php } if($mep_reg_gender){ ?>
<div class='sec'>
<label for="my_meta_box_text">Gender: </label>
<span>
<span class="ea-label">Gender: </span>
<span class="ea-value">
<?php echo $values['ea_gender'][0]; ?>
</span>
</div>
<?php } if($mep_reg_company){ ?>
<div class='sec'>
<label for="my_meta_box_text">Company: </label>
<span>
<span class="ea-label">Company: </span>
<span class="ea-value">
<?php echo $values['ea_company'][0]; ?>
</span>
</div>
<?php } if($mep_reg_designation){ ?>
<div class='sec'>
<label for="my_meta_box_text">Designation: </label>
<span>
<span class="ea-label">Designation: </span>
<span class="ea-value">
<?php echo $values['ea_desg'][0]; ?>
</span>
</div>
<?php } if($mep_reg_website){ ?>
<div class='sec'>
<label for="my_meta_box_text">Website: </label>
<span>
<span class="ea-label">Website: </span>
<span class="ea-value">
<?php echo $values['ea_website'][0]; ?>
</span>
</div>
<?php } if($mep_reg_veg){ ?>
<div class='sec'>
<label for="my_meta_box_text">Vegetarian?: </label>
<span>
<span class="ea-label">Vegetarian?: </span>
<span class="ea-value">
<?php echo $values['ea_vegetarian'][0]; ?>
</span>
</div>
<?php } if($mep_reg_tshirtsize){ ?>
<div class='sec'>
<span class="ea-label">T-Shirt Size?: </span>
<span class="ea-value">
<?php echo $values['ea_tshirtsize'][0]; ?>
</span>
</div>
<?php } ?>
<?php
$mep_form_builder_data = get_post_meta($values['ea_event_id'][0], 'mep_form_builder_data', true);
if ( $mep_form_builder_data ) {
foreach ( $mep_form_builder_data as $_field ) {
if ( $mep_user_ticket_type[$iu] != '' ) :
$user[$iu][$_field['mep_fbc_id']] = stripslashes( strip_tags( $_POST[$_field['mep_fbc_id']][$iu] ) );
endif;
?>
<div class='sec'>
<span class="ea-label"><?php echo $_field['mep_fbc_label']; ?>:</span>
<span class="ea-value">
<?php $vname = "ea_".$_field['mep_fbc_id']; echo $values[$vname][0]; ?>
</span>
</div>
<?php
}
}
?>
<div class='sec'>
<label for="my_meta_box_text">Order ID: </label>
<span>
<span class="ea-label">Ticket Type: </span>
<span class="ea-value">
<?php echo $values['ea_ticket_type'][0]; ?>
</span>
</div>
<div class='sec'>
<span class="ea-label">Order ID: </span>
<span class="ea-value">
<?php echo $values['ea_order_id'][0]; ?>
</span>
</div>
</div>
<div class='sec'>
<span>
<a href="<?php echo get_site_url(); ?>/wp-admin/post.php?post=<?php echo $values['ea_order_id'][0]; ?>&action=edit" class='button button-primary button-large'>View Order</a>

View File

@ -1,4 +1,6 @@
<?php
function mep_add_custom_fields_text_to_cart_item( $cart_item_data, $product_id, $variation_id ) {
$tp = get_post_meta($product_id,'_price',true);
$new = array();
@ -21,6 +23,14 @@ function mep_add_custom_fields_text_to_cart_item( $cart_item_data, $product_id,
$mep_user_vegetarian = $_POST['vegetarian'];
$mep_user_ticket_type = $_POST['ticket_type'];
if(isset($_POST['mep_ucf'])){
$mep_user_cfd = $_POST['mep_ucf'];
}else{
$mep_user_cfd = "";
}
$count_user = count($mep_user_name);
$count = count( $names );
@ -97,6 +107,18 @@ function mep_add_custom_fields_text_to_cart_item( $cart_item_data, $product_id,
$user[$iu]['user_ticket_type'] = stripslashes( strip_tags( $mep_user_ticket_type[$iu] ) );
endif;
$mep_form_builder_data = get_post_meta($product_id, 'mep_form_builder_data', true);
if ( $mep_form_builder_data ) {
foreach ( $mep_form_builder_data as $_field ) {
if ( $mep_user_ticket_type[$iu] != '' ) :
$user[$iu][$_field['mep_fbc_id']] = stripslashes( strip_tags( $_POST[$_field['mep_fbc_id']][$iu] ) );
endif;
}
}
}
@ -219,13 +241,3 @@ $item->add_meta_data( __('_event_user_info'),$event_user_info);
}
add_action( 'woocommerce_checkout_create_order_line_item', 'mep_add_custom_fields_text_to_order_items', 10, 4 );
function add_message_in_checkout() {
global $values,$cart_item_data;
print_r($$cart_item_data);
//var_dump(do_shortcode('[my_shortcode]'));
/*Modification*/
echo '<div class="coupon_value">Hello World</div>'; // Here I have modified it to give class and update value
}
add_action('woocommerce_review_order_before_payment', 'add_message_in_checkout');

View File

@ -148,7 +148,7 @@ jQuery('#eventpxtp_<?php echo $count; ?>').on('change', function () {
jQuery('#dadainfo_<?php echo $count; ?>').append(
jQuery('<div/>')
.attr("id", "newDiv" + i)
.html("<div class='mep-user-info-sec'><h5><?php echo $qm; ?> Attendee info:"+i+"</h5><input type='<?php if($mep_full_name){ echo 'text'; }else{ echo 'hidden'; } ?>' <?php if($mep_full_name){ ?> required='required' <?php } ?> name='user_name[]' class='mep_input' placeholder='Enter Your Name'/><input type='<?php if($mep_reg_email){ echo 'email'; }else{ echo 'hidden'; } ?>' <?php if($mep_reg_email){ ?> required='required' <?php } ?> name='user_email[]' class='mep_input' placeholder='Enter Your Email'/><input type='<?php if($mep_reg_phone){ echo 'text'; }else{ echo 'hidden'; } ?>' <?php if($mep_reg_phone){ ?> required='required' <?php } ?> name='user_phone[]' class='mep_input' placeholder='Enter Your Phone'/><textarea name='user_address[]' class='mep_input <?php if($mep_reg_address){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' rows='3' <?php if($mep_reg_address){ ?> required='required' <?php } ?> placeholder='Enter you address'></textarea><label class='<?php if($mep_reg_tshirtsize){ echo "mep-show"; }else{ echo "mep-hidden"; } ?>' for='gen' style='text-align: left;'>T-Shirt Size<select name='tshirtsize[]' id='gen'><option value=''>Please Select</option><?php echo mep_get_tshirts_sizes($post->ID); ?></select></label><label class='<?php if($mep_reg_gender){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' for='gen' style='text-align: left;'>Gender<select name='gender[]' id='gen'><option value=''>Please Select</option><option value='Male'>Male</option><option value='Female'>Female</option></select></label><input type='<?php if($mep_reg_company){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_company[]' class='mep_input' placeholder='Company'/><input type='<?php if($mep_reg_designation){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_designation[]' class='mep_input' placeholder='Designation'/><input type='<?php if($mep_reg_website){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_website[]' class='mep_input' placeholder='Website'/><label class='<?php if($mep_reg_veg){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' for='veg' style='text-align: left;'>Vegetarian<select name='vegetarian[]' id='veg'><option value=''>Please Select</option><option value='Yes'>Yes</option><option value='No'>No</option></select></label><input type='hidden' name='ticket_type[]' class='mep_input' value='<?php echo $qm; ?>' />")
.html("<div class='mep-user-info-sec'><h5><?php echo $qm; ?> Attendee info:"+i+"</h5><input type='<?php if($mep_full_name){ echo 'text'; }else{ echo 'hidden'; } ?>' <?php if($mep_full_name){ ?> required='required' <?php } ?> name='user_name[]' class='mep_input' placeholder='Enter Your Name'/><input type='<?php if($mep_reg_email){ echo 'email'; }else{ echo 'hidden'; } ?>' <?php if($mep_reg_email){ ?> required='required' <?php } ?> name='user_email[]' class='mep_input' placeholder='Enter Your Email'/><input type='<?php if($mep_reg_phone){ echo 'text'; }else{ echo 'hidden'; } ?>' <?php if($mep_reg_phone){ ?> required='required' <?php } ?> name='user_phone[]' class='mep_input' placeholder='Enter Your Phone'/><textarea name='user_address[]' class='mep_input <?php if($mep_reg_address){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' rows='3' <?php if($mep_reg_address){ ?> required='required' <?php } ?> placeholder='Enter you address'></textarea><label class='<?php if($mep_reg_tshirtsize){ echo "mep-show"; }else{ echo "mep-hidden"; } ?>' for='gen' style='text-align: left;'>T-Shirt Size<select name='tshirtsize[]' id='gen'><option value=''>Please Select</option><?php echo mep_get_tshirts_sizes($post->ID); ?></select></label><label class='<?php if($mep_reg_gender){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' for='gen' style='text-align: left;'>Gender<select name='gender[]' id='gen'><option value=''>Please Select</option><option value='Male'>Male</option><option value='Female'>Female</option></select></label><input type='<?php if($mep_reg_company){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_company[]' class='mep_input' placeholder='Company'/><input type='<?php if($mep_reg_designation){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_designation[]' class='mep_input' placeholder='Designation'/><input type='<?php if($mep_reg_website){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_website[]' class='mep_input' placeholder='Website'/><label class='<?php if($mep_reg_veg){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' for='veg' style='text-align: left;'>Vegetarian<select name='vegetarian[]' id='veg'><option value=''>Please Select</option><option value='Yes'>Yes</option><option value='No'>No</option></select></label><input type='hidden' name='ticket_type[]' class='mep_input' value='<?php echo $qm; ?>' /><?php do_action('mep_after_reg_form_front'); ?>")
);
}
@ -175,7 +175,7 @@ jQuery('#quantity_5a7abbd1bff73').on('change', function () {
jQuery('#divParent').append(
jQuery('<div/>')
.attr("id", "newDiv" + i)
.html("<div class='mep-user-info-sec'><h5>Attendee info:"+i+"</h5><input type='<?php if($mep_full_name){ echo 'text'; }else{ echo 'hidden'; } ?>' <?php if($mep_full_name){ ?> required='required' <?php } ?> name='user_name[]' class='mep_input' placeholder='Enter Your Name'/><input type='<?php if($mep_reg_email){ echo 'email'; }else{ echo 'hidden'; } ?>' <?php if($mep_reg_email){ ?> required='required' <?php } ?> name='user_email[]' class='mep_input' placeholder='Enter Your Email'/><input type='<?php if($mep_reg_phone){ echo 'text'; }else{ echo 'hidden'; } ?>' <?php if($mep_reg_phone){ ?> required='required' <?php } ?> name='user_phone[]' class='mep_input' placeholder='Enter Your Phone'/><textarea name='user_address[]' class='mep_input <?php if($mep_reg_address){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' rows='3' <?php if($mep_reg_address){ ?> required='required' <?php } ?> placeholder='Enter you address'></textarea><label class='<?php if($mep_reg_tshirtsize){ echo "mep-show"; }else{ echo "mep-hidden"; } ?>' for='gen' style='text-align: left;'>T-Shirt Size<select name='tshirtsize[]' id='gen'><option value=''>Please Select</option><?php echo mep_get_tshirts_sizes($post->ID); ?></select></label><label class='<?php if($mep_reg_gender){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' for='gen' style='text-align: left;'>Gender<select name='gender[]' id='gen'><option value=''>Please Select</option><option value='Male'>Male</option><option value='Female'>Female</option></select></label><input type='<?php if($mep_reg_company){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_company[]' class='mep_input' placeholder='Company'/><input type='<?php if($mep_reg_designation){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_designation[]' class='mep_input' placeholder='Designation'/><input type='<?php if($mep_reg_website){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_website[]' class='mep_input' placeholder='Website'/><label class='<?php if($mep_reg_veg){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' for='veg' style='text-align: left;'>Vegetarian<select name='vegetarian[]' id='veg'><option value=''>Please Select</option><option value='Yes'>Yes</option><option value='No'>No</option></select></label>")
.html("<div class='mep-user-info-sec'><h5>Attendee info:"+i+"</h5><input type='<?php if($mep_full_name){ echo 'text'; }else{ echo 'hidden'; } ?>' <?php if($mep_full_name){ ?> required='required' <?php } ?> name='user_name[]' class='mep_input' placeholder='Enter Your Name'/><input type='<?php if($mep_reg_email){ echo 'email'; }else{ echo 'hidden'; } ?>' <?php if($mep_reg_email){ ?> required='required' <?php } ?> name='user_email[]' class='mep_input' placeholder='Enter Your Email'/><input type='<?php if($mep_reg_phone){ echo 'text'; }else{ echo 'hidden'; } ?>' <?php if($mep_reg_phone){ ?> required='required' <?php } ?> name='user_phone[]' class='mep_input' placeholder='Enter Your Phone'/><textarea name='user_address[]' class='mep_input <?php if($mep_reg_address){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' rows='3' <?php if($mep_reg_address){ ?> required='required' <?php } ?> placeholder='Enter you address'></textarea><label class='<?php if($mep_reg_tshirtsize){ echo "mep-show"; }else{ echo "mep-hidden"; } ?>' for='gen' style='text-align: left;'>T-Shirt Size<select name='tshirtsize[]' id='gen'><option value=''>Please Select</option><?php echo mep_get_tshirts_sizes($post->ID); ?></select></label><label class='<?php if($mep_reg_gender){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' for='gen' style='text-align: left;'>Gender<select name='gender[]' id='gen'><option value=''>Please Select</option><option value='Male'>Male</option><option value='Female'>Female</option></select></label><input type='<?php if($mep_reg_company){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_company[]' class='mep_input' placeholder='Company'/><input type='<?php if($mep_reg_designation){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_designation[]' class='mep_input' placeholder='Designation'/><input type='<?php if($mep_reg_website){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_website[]' class='mep_input' placeholder='Website'/><label class='<?php if($mep_reg_veg){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' for='veg' style='text-align: left;'>Vegetarian<select name='vegetarian[]' id='veg'><option value=''>Please Select</option><option value='Yes'>Yes</option><option value='No'>No</option></select></label><?php do_action('mep_after_reg_form_front'); ?>")
);
}

View File

@ -125,10 +125,26 @@ $values = get_post_custom(get_the_id());
<td>Ticket Type</td>
<td><?php echo $values['ea_ticket_type'][0]; ?> </td>
</tr>
<?php } ?>
<?php }
$mep_form_builder_data = get_post_meta($values['ea_event_id'][0], 'mep_form_builder_data', true);
if ( $mep_form_builder_data ) {
foreach ( $mep_form_builder_data as $_field ) {
if ( $mep_user_ticket_type[$iu] != '' ) :
$user[$iu][$_field['mep_fbc_id']] = stripslashes( strip_tags( $_POST[$_field['mep_fbc_id']][$iu] ) );
endif;
$vname = "ea_".$_field['mep_fbc_id'];
$vals = $values[$vname][0];
if($vals){
?>
<tr>
<td><?php echo $_field['mep_fbc_label']; ?></td>
<td><?php echo $vals; ?></td>
</tr>
<?php
}
}
}
?>
</table>
</div>
</div>

View File

@ -104,7 +104,7 @@ $mep_event_ticket_type = get_post_meta($post->ID, 'mep_event_ticket_type', true)
if(!$mep_event_ticket_type){
?>
<div class="user-info-sec">
<div id="divParent"><div class='mep-user-info-sec'><h5><?php echo $qm; ?> Attendee info:1</h5><input type='<?php if($mep_full_name){ echo 'text'; }else{ echo 'hidden'; } ?>' <?php if($mep_full_name){ ?> required='required' <?php } ?> name='user_name[]' class='mep_input' placeholder='Enter Your Name'/><input type='<?php if($mep_reg_email){ echo 'email'; }else{ echo 'hidden'; } ?>' <?php if($mep_reg_email){ ?> required='required' <?php } ?> name='user_email[]' class='mep_input' placeholder='Enter Your Email'/><input type='<?php if($mep_reg_phone){ echo 'text'; }else{ echo 'hidden'; } ?>' <?php if($mep_reg_phone){ ?> required='required' <?php } ?> name='user_phone[]' class='mep_input' placeholder='Enter Your Phone'/><textarea name='user_address[]' class='mep_input <?php if($mep_reg_address){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' rows='3' <?php if($mep_reg_address){ ?> required='required' <?php } ?> placeholder='Enter you address'></textarea><label class='<?php if($mep_reg_tshirtsize){ echo "mep-show"; }else{ echo "mep-hidden"; } ?>' for='gen' style='text-align: left;'>T-Shirt Size<select name='tshirtsize[]' id='gen'><option value=''>Please Select</option><?php echo mep_get_tshirts_sizes($post->ID); ?></select></label><label class='<?php if($mep_reg_gender){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' for='gen' style='text-align: left;'>Gender<select name='gender[]' id='gen'><option value=''>Please Select</option><option value='Male'>Male</option><option value='Female'>Female</option></select></label><input type='<?php if($mep_reg_company){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_company[]' class='mep_input' placeholder='Company'/><input type='<?php if($mep_reg_designation){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_designation[]' class='mep_input' placeholder='Designation'/><input type='<?php if($mep_reg_website){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_website[]' class='mep_input' placeholder='Website'/><label class='<?php if($mep_reg_veg){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' for='veg' style='text-align: left;'>Vegetarian<select name='vegetarian[]' id='veg'><option value=''>Please Select</option><option value='Yes'>Yes</option><option value='No'>No</option></select></label><input type='hidden' name='ticket_type[]' class='mep_input' value='<?php echo $qm; ?>' /></div>
<div id="divParent"><div class='mep-user-info-sec'><h5><?php echo $qm; ?> Attendee info:1</h5><input type='<?php if($mep_full_name){ echo 'text'; }else{ echo 'hidden'; } ?>' <?php if($mep_full_name){ ?> required='required' <?php } ?> name='user_name[]' class='mep_input' placeholder='Enter Your Name'/><input type='<?php if($mep_reg_email){ echo 'email'; }else{ echo 'hidden'; } ?>' <?php if($mep_reg_email){ ?> required='required' <?php } ?> name='user_email[]' class='mep_input' placeholder='Enter Your Email'/><input type='<?php if($mep_reg_phone){ echo 'text'; }else{ echo 'hidden'; } ?>' <?php if($mep_reg_phone){ ?> required='required' <?php } ?> name='user_phone[]' class='mep_input' placeholder='Enter Your Phone'/><textarea name='user_address[]' class='mep_input <?php if($mep_reg_address){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' rows='3' <?php if($mep_reg_address){ ?> required='required' <?php } ?> placeholder='Enter you address'></textarea><label class='<?php if($mep_reg_tshirtsize){ echo "mep-show"; }else{ echo "mep-hidden"; } ?>' for='gen' style='text-align: left;'>T-Shirt Size<select name='tshirtsize[]' id='gen'><option value=''>Please Select</option><?php echo mep_get_tshirts_sizes($post->ID); ?></select></label><label class='<?php if($mep_reg_gender){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' for='gen' style='text-align: left;'>Gender<select name='gender[]' id='gen'><option value=''>Please Select</option><option value='Male'>Male</option><option value='Female'>Female</option></select></label><input type='<?php if($mep_reg_company){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_company[]' class='mep_input' placeholder='Company'/><input type='<?php if($mep_reg_designation){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_designation[]' class='mep_input' placeholder='Designation'/><input type='<?php if($mep_reg_website){ echo 'text'; }else{ echo 'hidden'; } ?>' name='user_website[]' class='mep_input' placeholder='Website'/><label class='<?php if($mep_reg_veg){ echo 'mep-show'; }else{ echo 'mep-hidden'; } ?>' for='veg' style='text-align: left;'>Vegetarian<select name='vegetarian[]' id='veg'><option value=''>Please Select</option><option value='Yes'>Yes</option><option value='No'>No</option></select></label><input type='hidden' name='ticket_type[]' class='mep_input' value='<?php echo $qm; ?>' /><?php do_action('mep_after_reg_form_front'); ?></div>
</div>
</div>
<?php } ?>

View File

@ -3,7 +3,7 @@
* Plugin Name: Woocommerce Events Manager
* Plugin URI: http://mage-people.com
* Description: A Complete Event Solution for WordPress by MagePeople..
* Version: 2.0.7
* Version: 2.0.8
* Author: MagePeople Team
* Author URI: http://www.mage-people.com/
*/
@ -230,6 +230,7 @@ if($mep_stock_msgc!='a2'){
$vegetarian = $_user_info['user_vegetarian'];
$tshirtsize = $_user_info['user_tshirtsize'];
$ticket_type = $_user_info['user_ticket_type'];
$mep_ucf = $_user_info['mep_ucf'];
// ADD THE FORM INPUT TO $new_post ARRAY
$new_post = array(
@ -259,6 +260,15 @@ if($mep_stock_msgc!='a2'){
$update_event_name = update_post_meta( $pid, 'ea_event_name', $event_name);
$update_eid = update_post_meta( $pid, 'ea_event_id', $event_id);
$update_oid = update_post_meta( $pid, 'ea_order_id', $order_id);
// Checking if the form builder addon is active and have any custom fields
$mep_form_builder_data = get_post_meta($event_id, 'mep_form_builder_data', true);
if ( $mep_form_builder_data ) {
foreach ( $mep_form_builder_data as $_field ) {
update_post_meta( $pid, "ea_".$_field['mep_fbc_id'], $_user_info[$_field['mep_fbc_id']]);
}
}
}
}
@ -611,10 +621,10 @@ function mep_set_custom_events_attendees_columns($columns) {
$columns['mep_uid'] = __( 'Unique ID', 'mep' );
$columns['mep_fn'] = __( 'Full Name', 'mep' );
$columns['mep_email'] = __( 'email', 'mep' );
$columns['mep_phone'] = __( 'Phone', 'mep' );
$columns['mep_address'] = __( 'Addresss', 'mep' );
$columns['mep_tsize'] = __( 'Tee Size', 'mep' );
// $columns['mep_email'] = __( 'email', 'mep' );
// $columns['mep_phone'] = __( 'Phone', 'mep' );
// $columns['mep_address'] = __( 'Addresss', 'mep' );
// $columns['mep_tsize'] = __( 'Tee Size', 'mep' );
$columns['mep_ttype'] = __( 'Ticket', 'mep' );
$columns['mep_evnt'] = __( 'Event', 'mep' );