fixed free event cart button display issue

This commit is contained in:
magepeopleteam 2018-12-15 04:17:16 +00:00
parent f252c17757
commit 012b2283c9
2 changed files with 9 additions and 9 deletions

View File

@ -29,8 +29,6 @@ if($current_template){
?>
<div class="mep-events-wrapper">
<?php require_once(dirname(__FILE__) . "/themes/$_current_template"); ?>
</div>
@ -114,11 +112,7 @@ jQuery(".extra-qty-box").on('change', function() {
total = total + sum;
// price.closest('tr').find('.cart_total_price').html(sum + "₴");
});
if(total==0){
jQuery('.btn-mep-event-cart').hide();
}else if(total>0){
jQuery('.btn-mep-event-cart').show();
}
jQuery('#usertotal').html("<?php echo get_woocommerce_currency_symbol(); ?>" + total);
jQuery('#rowtotal').val(total);
@ -135,6 +129,7 @@ foreach ( $mep_event_ticket_type as $field ) {
$qm = $field['option_name_t'];
?>
jQuery('.btn-mep-event-cart').hide();
jQuery('#eventpxtp_<?php echo $count; ?>').on('change', function () {
@ -142,7 +137,12 @@ jQuery('#eventpxtp_<?php echo $count; ?>').on('change', function () {
var inputs = jQuery('#eventpxtp_<?php echo $count; ?>').val() || 0;
var input = parseInt(inputs);
var children=jQuery('#dadainfo_<?php echo $count; ?> > div').size() || 0;
//alert(inputs);
if(inputs==0){
jQuery('.btn-mep-event-cart').hide();
}else if(inputs>0){
jQuery('.btn-mep-event-cart').show();
}
if(input < children){
jQuery('#dadainfo_<?php echo $count; ?>').empty();
children=0;

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.2.4
* Version: 2.2.5
* Author: MagePeople Team
* Author URI: http://www.mage-people.com/
* Text Domain: mage-eventpress