readme text change

This commit is contained in:
magepeopleteam 2019-04-10 11:36:55 +00:00
parent 6e03e72477
commit aa5e49e043
3 changed files with 1233 additions and 1218 deletions

View File

@ -836,13 +836,13 @@ $more_date = get_post_meta($post->ID, 'mep_event_more_date', true);
<div class="sec">
<table width="100%" class="mama">
<tr >
<td><input placeholder="Day 2" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('mep_event_more_date', $values)){ echo $more_date[0]['event_more_date']; } ?>" /></td>
<td><input placeholder="Day 2 (Use this only if you have same event multiple day)" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('mep_event_more_date', $values)){ echo $more_date[0]['event_more_date']; } ?>" /></td>
</tr>
<tr >
<td><input placeholder="Day 3" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('mep_event_more_date', $values)){ echo $more_date[1]['event_more_date']; } ?>" /></td>
<td><input placeholder="Day 3(Use this only if you have same event multiple day)" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('mep_event_more_date', $values)){ echo $more_date[1]['event_more_date']; } ?>" /></td>
</tr>
<tr >
<td><input placeholder="Day 4" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('mep_event_more_date', $values)){ echo $more_date[2]['event_more_date']; } ?>" /></td>
<td><input placeholder="Day 4(Use this only if you have same event multiple day)" type="text" class='event_more_date' name="event_more_date[]" value="<?php if(array_key_exists('mep_event_more_date', $values)){ echo $more_date[2]['event_more_date']; } ?>" /></td>
</tr>
</table>
</div>

View File

@ -104,7 +104,8 @@ if (get_post_type($eid) == 'mep_events') {
function mep_display_custom_fields_text_cart( $item_data, $cart_item ) {
$mep_events_extra_prices = $cart_item['event_extra_option'];
// print_r($cart_item);
$eid = $cart_item['event_id'];
if (get_post_type($eid) == 'mep_events') {
echo "<ul class='event-custom-price'>";
?>
<li><?php _e('Event Date','mage-eventpress'); ?>: <?php echo $cart_item['event_cart_date']; ?></li>
@ -124,6 +125,7 @@ if(array_key_exists('event_ticket_type', $cart_item)){
echo "<li> Ticket: ".$cart_item['event_ticket_type']." x ".$cart_item['event_ticket_qty'].": ".get_woocommerce_currency_symbol().$cart_item['event_ticket_price']."</li>";
}
echo "</ul>";
}
return $item_data;
}
@ -136,9 +138,21 @@ function mep_add_custom_fields_text_to_order_items( $item, $cart_item_key, $valu
$eid = $values['event_id'];
if (get_post_type($eid) == 'mep_events') {
$mep_events_extra_prices = $values['event_extra_option'];
if(isset($values['event_ticket_type'])){
$event_ticket_type = $values['event_ticket_type'];
}else{
$event_ticket_type = " ";
}
if(isset($values['event_ticket_price'])){
$event_ticket_price = $values['event_ticket_price'];
}else{
$event_ticket_price = " ";
}
if(isset($values['event_ticket_qty'])){
$event_ticket_qty = $values['event_ticket_qty'];
}else{
$event_ticket_qty = " ";
}
$product_id = $values['product_id'];
$cart_location = $values['event_cart_location'];
$cart_date = $values['event_cart_date'];
@ -181,8 +195,9 @@ update_post_meta( $product_id, "mep_xtra_$opt_name",$ntes);
if($event_ticket_type){
$event_ticket_type = "Ticket:".$event_ticket_type;
$item->add_meta_data( $event_ticket_type." x ".$event_ticket_qty,get_woocommerce_currency_symbol().$event_ticket_price);
// $event_ticket_type = "Ticket:".$event_ticket_type;
// $item->add_meta_data( $event_ticket_type." x ".$event_ticket_qty,get_woocommerce_currency_symbol().$event_ticket_price);
$tck_name = $product_id.str_replace(' ', '', $event_ticket_type);
$tesqt = get_post_meta($product_id,"mep_xtra_$tck_name",true);
$ntesqt = ($tesqt+$event_ticket_qty);

View File

@ -1097,47 +1097,47 @@ function mep_save_attendee_info_into_cart($product_id){
for ( $iu = 0; $iu < $count_user; $iu++ ) {
if ( $mep_user_name[$iu] != '' ) :
if (isset($mep_user_name[$iu])):
$user[$iu]['user_name'] = stripslashes( strip_tags( $mep_user_name[$iu] ) );
endif;
if ( $mep_user_email[$iu] != '' ) :
if (isset($mep_user_email[$iu])) :
$user[$iu]['user_email'] = stripslashes( strip_tags( $mep_user_email[$iu] ) );
endif;
if ( $mep_user_phone[$iu] != '' ) :
if (isset($mep_user_phone[$iu])) :
$user[$iu]['user_phone'] = stripslashes( strip_tags( $mep_user_phone[$iu] ) );
endif;
if ( $mep_user_address[$iu] != '' ) :
if (isset($mep_user_address[$iu])) :
$user[$iu]['user_address'] = stripslashes( strip_tags( $mep_user_address[$iu] ) );
endif;
if ( $mep_user_gender[$iu] != '' ) :
if (isset($mep_user_gender[$iu])) :
$user[$iu]['user_gender'] = stripslashes( strip_tags( $mep_user_gender[$iu] ) );
endif;
if ( $mep_user_tshirtsize[$iu] != '' ) :
if (isset($mep_user_tshirtsize[$iu])) :
$user[$iu]['user_tshirtsize'] = stripslashes( strip_tags( $mep_user_tshirtsize[$iu] ) );
endif;
if ( $mep_user_company[$iu] != '' ) :
if (isset($mep_user_company[$iu])) :
$user[$iu]['user_company'] = stripslashes( strip_tags( $mep_user_company[$iu] ) );
endif;
if ( $mep_user_desg[$iu] != '' ) :
if (isset($mep_user_desg[$iu])) :
$user[$iu]['user_designation'] = stripslashes( strip_tags( $mep_user_desg[$iu] ) );
endif;
if ( $mep_user_website[$iu] != '' ) :
if (isset($mep_user_website[$iu])) :
$user[$iu]['user_website'] = stripslashes( strip_tags( $mep_user_website[$iu] ) );
endif;
if ( $mep_user_vegetarian[$iu] != '' ) :
if (isset($mep_user_vegetarian[$iu])) :
$user[$iu]['user_vegetarian'] = stripslashes( strip_tags( $mep_user_vegetarian[$iu] ) );
endif;
if ( $mep_user_ticket_type[$iu] != '' ) :
if (isset($mep_user_ticket_type[$iu])) :
$user[$iu]['user_ticket_type'] = stripslashes( strip_tags( $mep_user_ticket_type[$iu] ) );
endif;