Okay
  Public Ticket #2722282
add events to woocommerce membership
Closed

Comments

  • krishna started the conversation

    How Can I add Events to woocommerce membership plugin? Please reply ASAP.I am waiting for your reply 3 days regarding this. 

    One another question is my created tickets automatically removed from the backend.


  •   krishna replied privately
  •  877
    Zhivko replied

    Hi,

    Sorry, this is not a part of the core WooCommerce so I'm not familiar with this plugin.

    And to clarify - you can sell tickets and WooCommerce products from an event but you can't sell Events from WooCommerce. There's no "Pay to submit event" option if that's what you're trying to achieve. 


    Stachethemes Developer

  • krishna replied

    Ok..Thank ou. Can I display a list of my purchased class in my account page?

  •   krishna replied privately
  •   krishna replied privately
  •   krishna replied privately
  •  877
    Zhivko replied

    Hi,

    1. Ticket orders are displaying in the Orders page along with other orders made via WooCommerce. Adding special page only for tickets would require customization via WordPress action hooks.

    2. I don't follow the separation rule here? Is it daily, weekly or on each event?

    3. Again would require customization via hook if your WooCommerce Gateway doesn't support such option.

    Normally, the support does not include customizations but I will try to implement the hooks for you.


    Stachethemes Developer

  •   krishna replied privately
  •  877
    Zhivko replied

    I'm currently working on them.


    Stachethemes Developer

  •  877
    Zhivko replied

    Okay, give this one a try.

    Place the file from the attached zip to your theme or child theme folder.

    Then from the theme functions.php file include the file:

    include __DIR__ . '/stec-custom.php';



    Stachethemes Developer

  •  877
    Zhivko replied

    P.S. Flush your rewrite rules.


    Stachethemes Developer

  •   krishna replied privately
  •   krishna replied privately
  •   krishna replied privately
  •   krishna replied privately
  •   krishna replied privately
  • krishna replied

    ******Very urgent****

    1.I am assigning same ticket for all events. Because I need a user can buy only 1 ticket for an event. Now,  after adding custom code , I can purchase only one event. When I am trying to purchase another event , it cannot possible because same ticket for all event and display this message "You\'ve already bought this ticket"

    2.Event list should be like this. I am displaying weekly agenda list.Please check the screenshot

  •  877
    Zhivko replied

    I'm currently working on this.


    Stachethemes Developer

  • krishna replied

    Thank you so much for your valuable time...

    One more question

    Can I have go to checkout page without opening popup when I click on tickets button?

    Tickets left text should be shown in event content area. Is it possible?

  •  877
    Zhivko replied

    Here's the updated file.

    One important thing: you should make a modification in the core. The change will be included in the next update so it's not big deal.

    Open file stachethemes_event_calendar/assets/php/class.wc.booking.php and on line 789 replace:

    do_action('stec_before_add_to_cart', $product, $quantity, $event);

    with:

    do_action('stec_before_add_to_cart', $product, $quantity, $event, $event_offset);

    basically this hook requires the extra $event_offset variable...


    Stachethemes Developer

  • krishna replied

    **** Need urgent attention. Sorry to disturb you on this weekend ******

    Thank you so much for your timely reply...I am grateful to that

    Could you please reply to this concern

    Can I have go to checkout page without opening popup when I click on tickets button?

    Tickets left text should be shown in event content area. Is it possible?

  •   krishna replied privately
  •  877
    Zhivko replied

    This one should fix this error.


    Stachethemes Developer

  • krishna replied

    Thank you so much..It is working fine now.

    Actually my client need a lot of customization in this plugin. That all are not coming with the built in plan. Sorry to disturb you

    Can you please check this out

    1.I am listing attendees list in backend those who have booked the event(Without RSVP) .Got the code from a public ticket.

    https://stachethemes.ticksy.com/?dl=1942428

    Attendee added to list, but the problem is I am using recurring events. Every event have 9 tickets and only 1 ticket for a user.For example I have an event on 23-03-2021 and same event is  recurring in 30-03-2021.A user purchased a ticket for 

    23-03-2021 and that user listed in attendee list.Again that user purchased a ticket for 30-03-2021 .How can I display different attendee list for recurring events in backend?

    2. I have added "book now" button in main list using this code

     $.stecExtend(function (m) {

                    m.$instance.on('stecBeforeReturnEventPreviewHtml', function (e, data) {

                        var cartButton, $preview, offset = 0, beid;

                        if (data.event.bookable_products.length <= 0 || m.helper.getEventState(data.event) > 0) {
                            return;
                        }

                        offset = parseInt(data.event.repeat_time_offset ? data.event.repeat_time_offset : 0, 10);

                        beid = data.event.id + '-' + offset;

                        cartButton = '<button style="margin-left:5px" data-id="' + beid + '" class="stec-style-button stec-preview-tickets" type="button" data-action="open-tickets">Book Now</button>';

                        $preview = $(data.temp.EventPreviewHtml);

                        $(cartButton).appendTo($preview.find('.stec-layout-event-preview-right'));

                        data.temp.EventPreviewHtml = $preview.get(0).outerHTML;

                        setTimeout(function () {
                            $(document).on(m.helper.clickHandle(), m.$instance.find('.stec-preview-tickets[data-id="' + beid + '"]').selector, function (e) {
                                e.stopPropagation();
                            });
                            m.$instance.find('.stec-preview-tickets[data-id="' + beid + '"]').data({
                                event: data.event
                            });
                        });
                    });

                }, 'onAddToEventsPool');

    The problem is the  booking popup does not reflect the tickets left. It shows the full number of tickets. Actually 8 ticket is left but when I click on main list button , showing 9 tickets left.

    Can you add these two hacks to the custom file? Thank you so much once again.

    3. Can I have First day of the week  as Thursday?

     4.I amusing tis shortcode [stachethemes_ec agenda_cal_display=0 min_date=now   max_date=this_week show_top=0 cal=376 agenda_get_n=10 cat=74 upcoming_only=1]

    Here   max_date=this_week  

    But list show events later o this because events are recurring. Can I show only this week events  even if they are recurring?

     

  •   krishna replied privately
  • krishna replied

    Could you please reply today itself?


    Can you please check this out


    1.I am listing attendees list in backend those who have booked the event(Without RSVP) .Got the code from a public ticket.


    https://stachethemes.ticksy.com/?dl=1942428


    Attendee added to list, but the problem is I am using recurring events. Every event have 9 tickets and only 1 ticket for a user.For example I have an event on 23-03-2021 and same event is recurring in 30-03-2021.A user purchased a ticket for 


    23-03-2021 and that user listed in attendee list.Again that user purchased a ticket for 30-03-2021 .How can I display different attendee list for recurring events in backend?


    2. I have added "book now" button in main list using this code


     $.stecExtend(function (m) {


                    m.$instance.on('stecBeforeReturnEventPreviewHtml', function (e, data) {


                        var cartButton, $preview, offset = 0, beid;


                        if (data.event.bookable_products.length <= 0 || m.helper.getEventState(data.event) > 0) {

                            return;

                        }


                        offset = parseInt(data.event.repeat_time_offset ? data.event.repeat_time_offset : 0, 10);


                        beid = data.event.id + '-' + offset;


                        cartButton = '<button style="margin-left:5px" data-id="' + beid + '" class="stec-style-button stec-preview-tickets" type="button" data-action="open-tickets">Book Now</button>';


                        $preview = $(data.temp.EventPreviewHtml);


                        $(cartButton).appendTo($preview.find('.stec-layout-event-preview-right'));


                        data.temp.EventPreviewHtml = $preview.get(0).outerHTML;


                        setTimeout(function () {

                            $(document).on(m.helper.clickHandle(), m.$instance.find('.stec-preview-tickets[data-id="' + beid + '"]').selector, function (e) {

                                e.stopPropagation();

                            });

                            m.$instance.find('.stec-preview-tickets[data-id="' + beid + '"]').data({

                                event: data.event

                            });

                        });

                    });


                }, 'onAddToEventsPool');


    The problem is the booking popup does not reflect the tickets left. It shows the full number of tickets. Actually 8 ticket is left but when I click on main list button , showing 9 tickets left.


    Can you add these two hacks to the custom file? Thank you so much once again.


    3. Can I have First day of the week as Thursday?


     4.I amusing tis shortcode [stachethemes_ec agenda_cal_display=0 min_date=now max_date=this_week show_top=0 cal=376 agenda_get_n=10 cat=74 upcoming_only=1]


    Here max_date=this_week  


    But list show events later o this because events are recurring. Can I show only this week events even if they are recurring?

  •   krishna replied privately
  • krishna replied

    Will you please consider my concerns? I am waiting for your reply.Please confirm whether it is possible or not.

  •  877
    Zhivko replied

    I'm writing you a solution at the moment.


    Stachethemes Developer

  • krishna replied

    Thank you so much

  •  877
    Zhivko replied

    Remove your rsvp code snippet.

    Remove the book button code. It is included in the custom file.

    The new custom file is attached here.

    The min_date and max_date will now work for recurrences as well.

    The edit event admin page will now have extra tab "Booking History" with list of purchases.

    The book button in the event preview should work properly now.

    Unfortunately, I don't it's possible, at least for now, to set the start of the week as Thursday.


    Stachethemes Developer

  • krishna replied

    Hi..Thank you.One problem is there. Day seperation is not working now

  •  877
    Zhivko replied

    This one separates them daily.


    Stachethemes Developer

  • krishna replied

    Thank you.One another pblm is there..I cant display only one week list.If I am clicking load more events in the next month also listing. future_months_ahead=1 this can limit upto 1 month.But I need  1 week.Is this possible?

    And also whwn I am clicking march 28 event booking popup show april 4 th event. Please check this also.This pblm is coming only when clicking on the button in list

  • krishna replied

    ****Please check this *****

    1. when I am clicking march 28 event booking, popup will show April 4 th event. Could you please .This pblm is coming only when clicking on the button in list. Button inside the content show correct popup.

    2..I cant display only one week list.If I am clicking load more events in the next month also listing. future_months_ahead=1 this can limit upto 1 month.But I need  1 week.Is this possible?

    3.Attendee list in the front end shows old attendees of that recurring event. Can I remove the old one and display only the attendee of that particular date.

  •   krishna replied privately
  • krishna replied

    Hello..Any updates?

  • krishna replied


    1. when I am clicking march 28 event booking, popup will show April 4 th event. Could you please .This pblm is coming only when clicking on the button in list. Button inside the content show correct popup.

    2..I cant display only one week list. If I am clicking load more events in the next month also listing. future_months_ahead=1 this can limit to 1 month. But I need only  current week(Ex: 27-03-2021 to 02-04-2021).Is it possible?

    3.Attendee list in the front end shows old attendees of that recurring event. Can I remove the old one and display only the attendee of that particular date.

  • krishna replied

    Hi Any update on this..? I am waiting for your reply

    1. when I am clicking march 28 event booking, popup will show April 4 th event. Could you please .This pblm is coming only when clicking on the button in list. Button inside the content show correct popup.

    2..I cant display only one week list. If I am clicking load more events in the next month also listing. future_months_ahead=1 this can limit to 1 month. But I need only  current week(Ex: 27-03-2021 to 02-04-2021).Is it possible?

    3.Attendee list in the front end shows old attendees of that recurring event. Can I remove the old one and display only the attendee of that particular date.

    4.Can I remove Zoom virtual event link from front end and send that link with confirmation mail after payment?

  • krishna replied

    ********URGENT*****************

    Hi Any update on this..? I am waiting for your reply

    1. when I am clicking march 28 event booking, popup will show April 4 th event. Could you please .This pblm is coming only when clicking on the button in list. Button inside the content show correct popup.

    2..I cant display only one week list. If I am clicking load more events in the next month also listing. future_months_ahead=1 this can limit to 1 month. But I need only  current week(Ex: 27-03-2021 to 02-04-2021).Is it possible?

    3.Attendee list in the front end shows old attendees of that recurring event. Can I remove the old one and display only the attendee of that particular date.

    4.Can I remove Zoom virtual event link from front end and send that link with confirmation mail after payment?

  •  877
    Zhivko replied

    1. The booking problem should be fixed now.

    2. In your shortcode add current_week=1 attribute:

    [stachethemes_ec current_week=1]

    3. Only active attendees will be visible now.

    4. Unfortunately, no. As an alternative you could set password for the virtual location and send it on order complete like so:

    add_action('stec_after_book_order_completed', function($order, $event, $event_offset) {
        
        // $order - The Woocommerce's \WC_Order class containing the customer email along with the order data 
        // $event - The Event_Post class 
        // $event_offset - (int) repeat offset in seconds
        // send email with password
        
    }, 10, 3);



    Stachethemes Developer

  •   krishna replied privately
  •  877
    Zhivko replied

    In Dashboard -> STEC -> Edit event -> Booking set  "Total tickets purchase limit" to 1


    Stachethemes Developer

  •   krishna replied privately
  •  877
    Zhivko replied

    Only 1 is shown as quantity on the front-end for the user but the limit is still 9.


    Stachethemes Developer