doodoole
Forum Replies Created
-
Nope, it does not work, for some sold out events it returns nil, but for some it does not.
But, I wrote my function, which gets number of sold tickets and compares it with
tribe_get_event_capacity()Thanks
HI @abzlevelup
It looks like the problem is with too many orders, on the original site, there are about 800000 entries in wp_postmeta, but, I might have come up with a solution… Correct me if I’m wrong, when there are no more tickets, the
tribe_get_cost()returnsnul? I made an if/then clause to check if it isnul, if it is, it hides the button for ordering tickets, and if it is not, it shows the price and the button for ordering tickets.Thanks
Hi @abzlevelup
thanks for fast reply
I now get
Parse error: syntax error, unexpected token "return"when I try to open the page
The page is loading slow, customized or out of the box template, now when I look at it, might have something to do with having to check through woocommerce for tickets quantity. I deleted all the orders in woocommerce, and it loads in about 3-6 seconds. Not really the thing I would like to do from time to time, but might be the solution.
Hi,
this is the URL to custom page
and this is the link to default page without customization.
Both are opening very slow…