• Resolved giuze

    (@giuze)


    (Issue not related to last update)

    In case of use of max 1 ticket per user, it will use the checkbox (why not cases but this is not the issue here).
    I did a bit of research to find out what was the issue and I figured out that the issue comes from mt-button.php
    -On line 163 we will setup the $value at 1 for each ticket type either the box is checked or not, that is ok (I think) as we want to have 1 ticket sold if it is then checked.
    -On line 201, for each ticket type we will add this $value to the $total_order. In my case I have 3 ticket types so my order will have a result of 3. So if my total remaining tickets drop down bellow 3, I will have my “add to cart” button not working.
    -The temporary workaround is to setup complementary tickets higher so I can keep the “add to cart” button active

    • This topic was modified 7 years, 3 months ago by giuze.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    I’m not 100% sure of what you’re trying to do, but you might find this useful:

    https://github.com/joedolson/plugin-extensions/blob/master/my-tickets/my-tickets-limit-purchases.php

    Thread Starter giuze

    (@giuze)

    Hello, sorry if I didn’t explain wrong the issue. What I mean is when there’s a ticket left only and when ckeboxes are used, it is not possible to buy any tickets.
    It is also related to the number of tickets type as there’s a bug in the logic.

    Plugin Author Joe Dolson

    (@joedolson)

    Can you give me a detailed set of steps to reproduce the issue? I think I see what you’re saying, but knowing how to set up the equivalent example would help.

    Thread Starter giuze

    (@giuze)

    The setup is 2 tickets type and the complementary as well. 1 type and the complementary are sold out, the second type with one ticket left.
    The counting method is inherit and maximum tickets per sale is 1 (changing in the link you posted before).
    Then the error I posted on my first message happened (I edited the code adding some variables to see what was happening).

    Plugin Author Joe Dolson

    (@joedolson)

    Identified and have resolved this issue; I’ll get an update out as soon as I can.

    Thread Starter giuze

    (@giuze)

    Cool, thank you. I could identify the issue but couldn’t resolve it expect adding some complementary tickets ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error with inherit mode and max 1 ticket per order’ is closed to new replies.