Okay
  Public Ticket #3203962
sales in ticket list
Closed

Comments

  •  3
    Trevor Lee started the conversation

    Hi , 

    I noticed something in ticket list , during testing phase if a sale is refunded or deleted, it still says total sales = x Can this changed to be in line with woo commerce sales?  

    Also in the ticket subheading where it says ticket used with 1 event - could you show the event name, linked back to the event - it gets very tricky if you have a lot of tickets trying to remember the associations without having to go in and check the event, booking tab :) 



    Many thanks, 

    Trevor

  •  782
    Zhivko replied

    I am aware of the problem. I'm using the WooCommerce function get_total_sales to get the total sales count. 

    6561462655.png

    What's strange this function does not update when the order is refunded or cancelled etc... the sales count stays the same.

    I will have to write my own counter for this... but I don't know when it will be ready.

    ---

    The used by x events retrieves a plain number only. And if the number is greater than one it will get tricky. I think it would be best to add "View Events" button next to "View Orders" that will redirect to list of events using this ticket.


    Stachethemes Developer

  •  3
    Trevor Lee replied

    Frustrating issue, does this get saved into a variable anywhere else? 

  •  782
    Zhivko replied

    I believe the value is stored in the product as meta data.

    The method get_prop is defined in plugins / woocommerce / includes / abstracts / abstract-wc-data.php line 814

    8434850724.png



    Stachethemes Developer