• Resolved mestarh

    (@mestarh)


    Hi,
    I’d like to decrease seat number after book if I select bank transfer as a pay method. Now if I choose this method the seat number is still the same – the status for the order is ‘on-hold’. In mep_functions.php file I’ve changed for something like that:

    if($order->has_status( ‘on-hold’ )) {
    //change_attandee_order_status($order_id,’publish’,’trash’,’on-hold’);
    //change_attandee_order_status($order_id,’publish’,’publish’,’on-hold’);

    change_attandee_order_status($order_id,’publish’,’trash’,’completed’);
    change_attandee_order_status($order_id,’publish’,’publish’,’completed’);
    change_extra_service_status($order_id,’publish’,’trash’,’completed’);
    change_extra_service_status($order_id,’publish’,’publish’,’completed’);
    do_action(‘mep_wc_order_status_change’,$order_status,$event_id,$order_id);
    }

    It works – the seat number is decreasing after booking but when I receive the payment and change the order status to completed the seat number back to previous number (so someone can still buy tickets).
    Can You help me?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mestarh

    (@mestarh)

    Now I changed the mep_ticket_type_sold function and add on-hold status to check:

    ,array(
    ‘relation’ => ‘OR’,
    array(
    ‘key’ => ‘ea_order_status’,
    ‘value’ => ‘processing’,
    ‘compare’ => ‘=’
    ),
    array(
    ‘key’ => ‘ea_order_status’,
    ‘value’ => ‘completed’,
    ‘compare’ => ‘=’
    ),
    array(
    ‘key’ => ‘ea_order_status’,
    ‘value’ => ‘on-hold’,
    ‘compare’ => ‘=’
    )
    )

    It should works?

    Thread Starter mestarh

    (@mestarh)

    Still doesn’t work as supposed to…
    After change to completed in attendee list:
    Ticket No Full Name Ticket Event
    31130311304 test test

    The ticket and event is empty… when I click sync data button it works.
    Do You know why those values had cleared after I change order status to completed ?

    • This reply was modified 3 years, 4 months ago by mestarh.
    • This reply was modified 3 years, 4 months ago by mestarh.
    • This reply was modified 3 years, 4 months ago by mestarh.
    • This reply was modified 3 years, 4 months ago by mestarh.
    Plugin Contributor Md. Abdullah Al Mahim

    (@aamahin)

    Hello @mestarh

    Thanks for your detailed message, First, Please update the PDF and Form Builder addon to the latest version which is released yesterday (Version: 3.70) which will fix the value cleared issue after order status changed.

    Currently, Only Processing & Completed status will reduce seat, Bank Transfer create by default on-hold status which is the cause not reduce, but we are now working on this issue, we are adding a new setting for seat reduce status in the event settings section, so you can set which status you want to reduce seat. This feature will be released in the next week. Please allow us some time.

    Thanks & Regards.

    Thread Starter mestarh

    (@mestarh)

    Hi,
    Did You add the new setting for seat reduce status in the event settings section?
    Because I Cannot find it…

    I’m also looking for a way to decrease the seat count for status = on-hold. This is the default status for BACS (Bank) or Cheque transaction. How do I change the setting to do this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘The seat number doesn’t decrease after bank transfer method’ is closed to new replies.