readme file update
This commit is contained in:
parent
5afd9e5f59
commit
519bc9ff56
|
@ -78,6 +78,7 @@ if(isset($_POST['mep_event_ticket_type'])){
|
|||
|
||||
$mep_event_ticket_type = get_post_meta($product_id, 'mep_event_ticket_type', true) ? get_post_meta($product_id, 'mep_event_ticket_type', true) : array();
|
||||
$cnt = 0;
|
||||
$vald = 0;
|
||||
$ticket_type_arr = array();
|
||||
if(is_array($mep_event_ticket_type) && sizeof($mep_event_ticket_type) > 0){
|
||||
foreach($mep_event_ticket_type as $_type){
|
||||
|
@ -97,6 +98,9 @@ if(isset($_POST['mep_event_ticket_type'])){
|
|||
$ticket_type_arr[$cnt]['ticket_qty'] = stripslashes( strip_tags( $cart_arr['option_qty'] ) );
|
||||
$ticket_type_arr[$cnt]['ticket_price'] = stripslashes( strip_tags( $cart_arr['option_price'] ) );
|
||||
$ticket_type_arr[$cnt]['event_date'] = stripslashes( strip_tags( $mep_event_start_date ) );
|
||||
|
||||
$validate[$cnt]['ticket_qty'] = $vald + stripslashes( strip_tags( $cart_arr['option_qty'] ) );
|
||||
$validate[$cnt]['event_id'] = stripslashes( strip_tags( $product_id ) );
|
||||
}
|
||||
|
||||
$cnt++;
|
||||
|
@ -122,10 +126,10 @@ foreach($mep_events_extra_prices as $extra_service){
|
|||
|
||||
$us++;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$cart_item_data['event_ticket_info'] = $ticket_type_arr;
|
||||
$cart_item_data['event_validate_info'] = $validate;
|
||||
$cart_item_data['event_extra_option'] = $new;
|
||||
$cart_item_data['event_user_info'] = $user;
|
||||
$cart_item_data['event_tp'] = $tp;
|
||||
|
@ -172,9 +176,10 @@ $eid = $cart_item['event_id'];
|
|||
if (get_post_type($eid) == 'mep_events') {
|
||||
$user_info = $cart_item['event_user_info'];
|
||||
$ticket_type_arr = $cart_item['event_ticket_info'];
|
||||
// echo '<pre>';
|
||||
// print_r($user_info);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
echo "<ul class='event-custom-price'>";
|
||||
if(is_array($user_info) && sizeof($user_info > 0)){
|
||||
foreach($user_info as $userinf){
|
||||
|
@ -211,6 +216,37 @@ add_filter( 'woocommerce_get_item_data', 'mep_display_custom_fields_text_cart',
|
|||
|
||||
|
||||
|
||||
add_action( 'woocommerce_after_checkout_validation', 'mep_checkout_validation');
|
||||
function mep_checkout_validation( $posted ) {
|
||||
global $woocommerce;
|
||||
$items = $woocommerce->cart->get_cart();
|
||||
foreach($items as $item => $values) {
|
||||
$event_id = $values['event_id'];
|
||||
$total_seat = mep_event_total_seat($event_id,'total');
|
||||
$total_resv = mep_event_total_seat($event_id,'resv');
|
||||
$total_sold = mep_ticket_sold($event_id);
|
||||
$total_left = $total_seat - ($total_sold + $total_resv);
|
||||
;
|
||||
$event_validate_info = $values['event_validate_info'];
|
||||
$ee = 0;
|
||||
foreach($event_validate_info as $inf){
|
||||
$ee = $ee + $inf['ticket_qty'];
|
||||
}
|
||||
if($ee > $total_left) {
|
||||
$event = get_the_title($event_id);
|
||||
wc_add_notice( __( "Sorry, Seats are not available in <b>$event</b>, Available Seats <b>$total_left</b> but you selected <b>$ee</b>", 'mage-eventpress' ), 'error' );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function mep_add_custom_fields_text_to_order_items( $item, $cart_item_key, $values, $order ) {
|
||||
$eid = $values['event_id'];
|
||||
|
|
64
readme.txt
64
readme.txt
|
@ -15,39 +15,45 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
|||
WooCommerce Event Manager is a Event Plugin for WordPress which is based on WooCommerce.
|
||||
|
||||
== Description ==
|
||||
This is one of the best and simple event management plugin is WordPress directory, Its used Woocommerce for making payment so Its freedom to use any payment gateway via WooCommerce. This plugin will run with Woocommerce but it will work as event post it will not take any effect on woocommerce products so if you want you can sale your product along with it.
|
||||
WooCommerce Event Manage- is one of the best and simple event management plugin available in WordPress directory. It uses WooCommerce to take payment, which provides freedom for using popular payment getaway via WooCommerce. This plugin supports all WordPress version and can be used to create any types of any types of events.
|
||||
|
||||
|
||||
### Free Version Plugin Features:
|
||||
|
||||
### All major functions are available below:
|
||||
➡ Support All Popular Payment Method Via WooCommerce.
|
||||
➡ Cross Browser Support – (Chrome, Firefox, Safari, Opera, Etc.)
|
||||
➡ Responsive and SEO Friendly.
|
||||
➡ Multilingual Translation Support
|
||||
➡ Available Short Code for Customizing Events & For Showing Event In Any Web Page.
|
||||
➡ Event Name & Event Description
|
||||
➡ Manage Event Ticket Type, Quantity, Prices, Category & Organizer.
|
||||
➡ Event Extra Service with Price & Quantity Management.
|
||||
➡ Show Event Venue Using Google Map.
|
||||
➡ Option of Adding Event Start Date, End Date and Multi Date & Time.
|
||||
➡ One Click Event Rest Option.
|
||||
➡ View Registered Attendee from WooCommerce Order Details.
|
||||
➡ Multiple Event Templates (You can select a different template for each event)
|
||||
➡ Works with Any Standards Compliant WordPress Theme.
|
||||
➡ WooCommerce Support, You can Sale product and Event Separately. There is no mixing with Event with the WooCommerce Products.
|
||||
➡ [View Live Demo](https://demo.vaincode.com/mage-event/)
|
||||
|
||||
➡ Works with WooCommerce and support all Payment method thats works on WooCommerce
|
||||
➡ Showing Event in any page with Shortcode with different options
|
||||
➡ Event Tickets with Quantity Management
|
||||
➡ Event Extra Service with Quantity Management
|
||||
➡ Event Venue with Google Map with google MAP and Iframe support
|
||||
➡ Event Category
|
||||
➡ Event Organizer
|
||||
➡ Event Pricing with different type of event
|
||||
➡ Event Calendar
|
||||
➡ Custom email for every event
|
||||
➡ Event Start & End Datetime and multiple date support
|
||||
➡ Custom Registration Form for Event Attendee with every event
|
||||
➡ Event Feature Image
|
||||
➡ Responsive Design
|
||||
➡ Developer fiendly
|
||||
➡ Plays well with other Plugins
|
||||
➡ Works with any standards compliant WordPress theme
|
||||
➡ Event Template ( You can select a different template for each event)
|
||||
➡ Ticket PDF Print and PDF ticket attachment with email (Pro version)
|
||||
➡ Export Attendee List as csv format (Event Pro)
|
||||
➡ Event Attendee List (Event Pro)
|
||||
➡ Event Attendee Ticket with BarCode (QR code Addon)
|
||||
➡ Nice Event Calenger Images support (Event Calender Pro Addon)
|
||||
➡ Event book from Dashboard ( book from Dashborad Pro Addon)
|
||||
➡ WooCommerce Support, You can Sale product and Event individually. There is no connection with Event with the WooCommerce Products.
|
||||
### [Pro Version](https://mage-people.com/product/mage-woo-event-booking-manager-pro/) Plugin Features
|
||||
➡ Download PDF tickets for event attendee.
|
||||
➡ Custom Registration Form for Event Attendees.
|
||||
➡ Automatic Email Conformation Message and Pdf Tickets Mailing Features
|
||||
➡ Export Attendee List as CSV Format.
|
||||
➡ [Buy WooCommerce Event Manager Pro](https://mage-people.com/product/mage-woo-event-booking-manager-pro/)
|
||||
|
||||
|
||||
### Other Available Addons
|
||||
➡ QR Code Addon- PDF Event Tickets with Printed QR Code (For attendee check-in).
|
||||
➡ Backend Order Addon- Book Event from Dashboard/Backend
|
||||
➡ Coupon Code Addon- Event Coupon Code Adding Features
|
||||
➡ Event Duplicator Addon- This Addon will Allow You to Duplicate any Events for Re-using.
|
||||
➡ Event Calendar Pro Addon- Nice Event Calendar Images Support. Showcase Your Events into Awesome Calendar.
|
||||
➡ User Registration Form Position Addon– choose where you want to display attendee registration form- 1. Event Details Page Or 2. Checkout Page.
|
||||
➡ Waitlist Addon -If Event Ticket Quantity Is Finished, This Addon Will Automatically Activate and Subscriber Can Join the Waitlist. Admin Can Send Email to The User for Next Free Slot.
|
||||
➡ Related Events Addon - You can select related event and display to event details page.
|
||||
|
||||
|
||||
👉 [View Live Demo](https://demo.vaincode.com/mage-event/)
|
||||
|
@ -60,7 +66,7 @@ This is one of the best and simple event management plugin is WordPress director
|
|||
### Shortcodes included with Woocommerce Events Manager
|
||||
|
||||
`
|
||||
[event-list cat='' org='' style='grid' cat-filter='no' org-filter='no' show='' pagination='no' sort='ASC']
|
||||
[event-list cat='' org='' column='2' style='grid' cat-filter='no' org-filter='no' show='' pagination='no' sort='ASC']
|
||||
`
|
||||
|
||||
**cat:**
|
||||
|
@ -438,4 +444,6 @@ A. you can create support ticket here with problem details with possible screens
|
|||
*= 3.0.2 =
|
||||
* Update Release:
|
||||
==> Add Calendar Button issue fixed
|
||||
==> Event Checkout Validation
|
||||
==> Missing Translation added.
|
||||
17 Dec 2019*
|
|
@ -92,7 +92,7 @@ $mep_show_upcoming_event = get_post_meta(get_the_id(), 'mep_show_upcoming_event'
|
|||
$more_date = array();
|
||||
}
|
||||
?>
|
||||
<h3><i class="fa fa-calendar"></i> <?php echo esc_html( 'Event schedule details', 'mage-eventpress' ); ?></h3>
|
||||
<h3><i class="fa fa-calendar"></i> <?php _e( 'Event Schedule Details', 'mage-eventpress' ); ?></h3>
|
||||
<?php
|
||||
echo '<ul>';
|
||||
|
||||
|
|
|
@ -16,7 +16,9 @@ $mep_event_day = get_post_meta($post->ID, 'mep_event_day', true);
|
|||
|
||||
if ( $mep_event_day ){
|
||||
echo '<div class="mep-day-details-section">';
|
||||
echo '<h4>Event Days</h4>';
|
||||
?>
|
||||
<h4><?php _e('Event Days','mage-eventpress'); ?></h4>
|
||||
<?php
|
||||
foreach ( $mep_event_day as $field ) {
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue