Changeset 2608432
- Timestamp:
- 10/03/2021 09:28:01 AM (4 years ago)
- Location:
- myticket-events/trunk
- Files:
-
- 4 added
- 6 edited
-
assets/listing-05-script.js (modified) (2 diffs)
-
inc/class-myticket-events.php (modified) (1 diff)
-
inc/class-woocommerce.php (modified) (3 diffs)
-
plugin.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
src/listing-05/block.php (modified) (1 diff)
-
templates/ticket-status-general (added)
-
templates/ticket-status-general/index.php (added)
-
templates/ticket-status-individual (added)
-
templates/ticket-status-individual/index.php (added)
Legend:
- Unmodified
- Added
- Removed
-
myticket-events/trunk/assets/listing-05-script.js
r2581895 r2608432 65 65 66 66 // get layout code from html sript 67 hall_js = JSON.parse( kenzap_hall_layout);67 hall_js = JSON.parse($("#kenzap-hall-layout-code").html()); 68 68 69 69 // date change listener … … 723 723 724 724 // 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; 726 726 727 727 g.appendChild(circle); -
myticket-events/trunk/inc/class-myticket-events.php
r2582054 r2608432 370 370 371 371 if ( ! array_intersect( $allowed_roles, $user->roles ) ) { 372 // wp_die( 'Access denied' );372 // wp_die( 'Access denied' ); 373 373 } 374 374 -
myticket-events/trunk/inc/class-woocommerce.php
r2600567 r2608432 19 19 add_action( 'woocommerce_before_calculate_totals', 'myticket_set_custom_price' ); 20 20 21 // Store the custom field21 // Store the custom field 22 22 function myticket_add_cart_item_custom_data( $cart_item_meta, $product_id ) { 23 23 global $woocommerce; … … 635 635 $output['order_status'] = $order->get_status(); 636 636 $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(); 639 641 640 642 // scanner button defaults … … 688 690 // $date_start = "11/12/2020"; 689 691 // $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 } 700 700 701 701 // checks if calendar is enabled -
myticket-events/trunk/plugin.php
r2600520 r2608432 6 6 * Author: Kenzap 7 7 * Author URI: https://kenzap.com/ 8 * Version: 1.2. 18 * Version: 1.2.2 9 9 * License: GPL2+ 10 10 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt … … 18 18 } 19 19 20 define( 'MYTICKET_VERSION', '1.2. 1' );20 define( 'MYTICKET_VERSION', '1.2.2' ); 21 21 define( 'MYTICKET_PATH', plugin_dir_path( __FILE__ ) ); 22 22 define( 'MYTICKET_URL', plugins_url( '/', __FILE__ ) ); -
myticket-events/trunk/readme.txt
r2600520 r2608432 4 4 Requires at least: 5.6 5 5 Tested up to: 5.8 6 Stable tag: 1.2. 16 Stable tag: 1.2.2 7 7 Donate link: https://kenzap.com/myticket-events-plugin-customization-service-1016004/#support 8 8 Requires PHP: 5.6 … … 188 188 Update: fixing bug fix with images not being displayed on thank you page 189 189 Update: improved UI for checkout fields in cart 190 191 = v1.2.2 = 192 Update: Frontend console layout crash fix for MyTicket Hall layout 193 Update: Individual ticket status logics updates. Now by default unpaid ticket are not valid 194 New: Now it is possible to set up custom logics for app statuses -
myticket-events/trunk/src/listing-05/block.php
r2581895 r2608432 139 139 </div> 140 140 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> 144 142 <div id="kp_wrapper" class="kp_wrapper"> 145 143 <?php if (in_array('administrator', (array) $user->roles)) { ?>
Note: See TracChangeset
for help on using the changeset viewer.