verbb / events

Craft CMS Plugin for events management and ticketing.
Other
22 stars 13 forks source link

`Calling unknown method: verbb\events\elements\Ticket::getProduct()` #90

Closed shifuma closed 3 years ago

shifuma commented 3 years ago

Description When purchasing a ticket, the purchase goes through ok, but the user is not redirected to the order success page. Checking the web.log, I see Calling unknown method: verbb\events\elements\Ticket::getProduct()

Steps to reproduce

  1. Purchase a ticket
  2. User not redirected
  3. See successful order in control panel
  4. Check logs for error

Additional info

Additional Context My checkout form is quite simple:

<form method="post" action="" id="payment-form">
    {{ craft.snaptcha.field }}
    {{ actionInput('commerce/payments/pay') }}
    {{ redirectInput(siteUrl('account/order', { number: cart.number, success: 'true' })) }}
    {{ hiddenInput('cancelUrl', siteUrl('shop/checkout/payment')|hash) }}
    {{ hiddenInput('gatewayId', '3') }}
    {{ csrfInput() }}

    {{ cart.gateway.getPaymentFormHtml({})|raw }}
    <button type="submit">Pay Now</button>
</form>
shifuma commented 3 years ago

Custom Module interferring. 🤦‍♂️