Plugin Directory

Changeset 2608432


Ignore:
Timestamp:
10/03/2021 09:28:01 AM (4 years ago)
Author:
kenzap
Message:

Version update

Location:
myticket-events/trunk
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • myticket-events/trunk/assets/listing-05-script.js

    r2581895 r2608432  
    6565
    6666            // get layout code from html sript
    67             hall_js = JSON.parse(kenzap_hall_layout);
     67            hall_js = JSON.parse($("#kenzap-hall-layout-code").html());
    6868
    6969            // date change listener
     
    723723
    724724        // set custom assigned seat number
    725         if(hall.areas[z].seats.points[i] !== undefined) if(hall.areas[z].seats.points[i].t) text.innerHTML = hall.areas[z].seats.points[i].t;
     725        if(hall.areas[z].seats.points[i] !== undefined) if(hall.areas[z].seats.points[i]) if(hall.areas[z].seats.points[i].t) text.innerHTML = hall.areas[z].seats.points[i].t;
    726726       
    727727        g.appendChild(circle);
  • myticket-events/trunk/inc/class-myticket-events.php

    r2582054 r2608432  
    370370           
    371371            if ( ! array_intersect( $allowed_roles, $user->roles ) ) {
    372                 //wp_die( 'Access denied' );
     372                // wp_die( 'Access denied' );
    373373            }
    374374
  • myticket-events/trunk/inc/class-woocommerce.php

    r2600567 r2608432  
    1919add_action( 'woocommerce_before_calculate_totals', 'myticket_set_custom_price' );
    2020
    21 //Store the custom field
     21// Store the custom field
    2222function myticket_add_cart_item_custom_data( $cart_item_meta, $product_id ) {
    2323    global $woocommerce;
     
    635635        $output['order_status'] = $order->get_status();
    636636        $output['order_total'] = $order->get_total();
    637 
    638         if($item_id!="") $output['order_status'] = wc_get_order_item_meta( $item_id, 'status', true );
     637        $output['type'] = 'general';
     638
     639        if($item_id!=""){ $output['order_status'] = wc_get_order_item_meta( $item_id, 'status', true ); $output['type'] = "individual"; }
     640        if($output['order_status'] == "") $output['order_status'] = $order->get_status();
    639641
    640642        // scanner button defaults
     
    688690        // $date_start = "11/12/2020";
    689691        // $date_end = "01/11/2020";
    690        
    691         // disable validation if ticket status is on hold. Example, no payment received
    692         if($output['order_status'] == "on-hold"){
    693            
    694             $output['btn']['color'] = "#cc0000";
    695             $output['btn']['note'] = "Ticket pending payment";
    696             $output['btn']['txt'] = esc_html__('Not Valid','myticket-events');
    697             $output['btn']['enabled'] = false;
    698             $output['btn']['visible'] = true;
    699         }
     692   
     693        // load status template
     694        $override_template_path = get_template_directory() . '/' . MYTICKET_SLUG . '/ticket-status-'.$output['type'].'/index.php';
     695        if ( file_exists($override_template_path) ){
     696            include $override_template_path;
     697        }else{
     698            include MYTICKET_PATH . 'templates/ticket-status-'.$output['type'].'/index.php';
     699        }
    700700
    701701        // checks if calendar is enabled
  • myticket-events/trunk/plugin.php

    r2600520 r2608432  
    66 * Author: Kenzap
    77 * Author URI: https://kenzap.com/
    8  * Version: 1.2.1
     8 * Version: 1.2.2
    99 * License: GPL2+
    1010 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
     
    1818}
    1919
    20 define( 'MYTICKET_VERSION', '1.2.1' );
     20define( 'MYTICKET_VERSION', '1.2.2' );
    2121define( 'MYTICKET_PATH', plugin_dir_path( __FILE__ ) );
    2222define( 'MYTICKET_URL', plugins_url( '/', __FILE__ ) );
  • myticket-events/trunk/readme.txt

    r2600520 r2608432  
    44Requires at least: 5.6
    55Tested up to: 5.8
    6 Stable tag: 1.2.1
     6Stable tag: 1.2.2
    77Donate link: https://kenzap.com/myticket-events-plugin-customization-service-1016004/#support
    88Requires PHP: 5.6
     
    188188Update: fixing bug fix with images not being displayed on thank you page
    189189Update: improved UI for checkout fields in cart
     190
     191= v1.2.2 =
     192Update: Frontend console layout crash fix for MyTicket Hall layout
     193Update: Individual ticket status logics updates. Now by default unpaid ticket are not valid
     194New: Now it is possible to set up custom logics for app statuses
  • myticket-events/trunk/src/listing-05/block.php

    r2581895 r2608432  
    139139        </div>
    140140
    141         <script id="kenzap-hall-layout-code">
    142             var kenzap_hall_layout = '<?php echo $attributes['filterLocations']; ?>';
    143         </script>
     141        <script id="kenzap-hall-layout-code" type="application/json"><?php echo $attributes['filterLocations']; ?></script>
    144142        <div id="kp_wrapper" class="kp_wrapper">
    145143            <?php if (in_array('administrator', (array) $user->roles)) { ?>
Note: See TracChangeset for help on using the changeset viewer.