new issue fixed by shamim

This commit is contained in:
magepeopleteam 2018-07-02 11:35:38 +00:00
parent 6ba829a9df
commit 3006d57950
4 changed files with 12 additions and 13 deletions

View File

@ -584,7 +584,7 @@ font-size: 14px;
display: inline-block;
}
.extra-qty-box {
width: 45px!important;
width: auto!important;
display: inline-block!important;
padding: 4px 5px!important;
}

View File

@ -7,7 +7,7 @@ function mep_event_meta_box_add(){
add_meta_box( 'mep-event-price', 'Event Price (Event Base price, It will not work if you add Event Ticket type Price)', 'mep_event_price_meta_box_cb', 'mep_events', 'normal', 'high' );
add_meta_box( 'mep-event-extra-price', 'Event Extra Option Price', 'mep_event_extra_price_option', 'mep_events', 'normal', 'high' );
add_meta_box( 'mep-event-extra-price', 'Event Extra Service (Extra Service as Product that you can sell and it is not included on event package)', 'mep_event_extra_price_option', 'mep_events', 'normal', 'high' );
add_meta_box( 'mep-event-ticket-type', 'Event Ticket Type', 'mep_event_ticket_type', 'mep_events', 'normal', 'high' );
@ -278,8 +278,8 @@ function mep_event_extra_price_option() {
<table id="repeatable-fieldset-one" width="100%">
<thead>
<tr>
<th width="30%">Extra Option Name</th>
<th width="30%">Price</th>
<th width="30%">Extra Service Name</th>
<th width="30%">Service Price</th>
<th width="20%">Available Qty</th>
<th width="10%">Qty Box Type</th>
<th width="10%"></th>

View File

@ -27,17 +27,16 @@ $qty_t_type = $field['option_qty_t_type'];
<div class="xtra-item-left">-<?php echo $llft; ?> Left</div>
</td>
<td>
Ticket Qty:
<?php if($qty_t_type=='dropdown'){ ?>
<select name="option_qty[]" id="eventpxtp_<?php echo $count; ?>" class='extra-qty-box etp'>
<?php for ($i = 0; $i <= $llft; $i++) { ?>
<option value="<?php echo $i; ?>"><?php echo $i; ?> Ticket</option>
<?php } ?>
<?php for ($i = 0; $i <= $llft; $i++) { ?>
<option value="<?php echo $i; ?>"><?php echo $i; ?> Ticket</option>
<?php } ?>
</select>
<?php }else{ ?>
<?php }else{ ?>
<input id="eventpxtp_<?php echo $count; ?>" <?php //if($ext_left<=0){ echo "disabled"; } ?> size="4" pattern="[0-9]*" inputmode="numeric" type="number" class='extra-qty-box etp' name='option_qty[]' data-price='<?php echo $field['option_price_t']; ?>' value='0' min="0" max="<?php echo $llft; ?>">
<?php } ?>
<?php } ?>
@ -47,7 +46,7 @@ $qty_t_type = $field['option_qty_t_type'];
</td>
<td><?php echo get_woocommerce_currency_symbol().$field['option_price_t']; ?>
<td>Per Ticket Price: <strong><?php echo get_woocommerce_currency_symbol().$field['option_price_t']; ?></strong>
<p style="display: none;" class="price_jq"><?php echo $field['option_price_t']; ?></p>
<input type="hidden" name='option_name[]' value='<?php echo $field['option_name_t']; ?>'>

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.1
* Version: 2.0.2
* Author: MagePeople Team
* Author URI: http://www.mage-people.com/
*/