Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New ticket requires price greater than 0 #9

Open
BDMayhem opened this issue Jul 26, 2022 · 5 comments
Open

New ticket requires price greater than 0 #9

BDMayhem opened this issue Jul 26, 2022 · 5 comments

Comments

@BDMayhem
Copy link

BDMayhem commented Jul 26, 2022

Events Calendar 5.16.3.1
Events Calendar Pro 5.14.4
Event Tickets 5.4.3.1
Event Tickets Plus 5.5.2
WooCommerce 6.7.0
WooCommerce Name Your Price 3.3.9
WooCommerce Name Your Price - Events Tickets 2.0.0

When creating a new ticket, if I check the Name Your Price checkbox, the price field disappears, but suggested and minimum price fields do not appear.
nyp

When I try to save the ticket, I get a message that reads "Ticket price must be greater than zero." The ticket does not save.
zero

If I add a price greater than zero, then check the Name Your Price box, I can save the ticket, but the ticket keeps the price previously entered.

@BDMayhem
Copy link
Author

Update: I found the plugin conflict that was causing the suggested and minimum prices not to show. This was happening because they use a classname of "hide", which the other plugin also uses, just with display: none !important!

But I'm still having he problem that it is requiring a price greater than zero, even when suggested and minimum prices are included.

@helgatheviking
Copy link
Collaborator

Hi thanks for reporting this. A quick glance suggests that PayPal does not support a $0 checkout? You can see the validation added in event-tickets/src/admin-views/editor/fieldset/price.php

I am not familiar enough with Event Tickets to know how the provider gets set to PayPal, but it currently it looks like the validation is added automatically and there's no obvious way to disable it.

This is still not a priority-supported plugin so not sure when I'd be able to dig in further. Very open to PRs here.. though first instinct is that Event Tickets may need some tweaking as well. I've sent an email to my contacts at Event Tickets... hopefully they can provide some guidance.

I guess I thought that hide was a core class, but that doesn't look like the case.

@BDMayhem
Copy link
Author

Thank you for looking into this.

This may be a failing in the Event Tickets knowledgebase. There's a setting that once flipped allowed the price to be zero. It has to be on Sell Tickets Using: WooCommerce, rather than Tickets Commerce. This is on the event page, ticket settings.

image

@borkweb
Copy link

borkweb commented Jul 27, 2022

Howdy - I'm from The Events Calendar and Event Tickets. You both came to the right conclusion! The PayPal API does not allow for $0 products (tickets). Because Tickets Commerce does not have a cart system, it works directly with the PayPal API for managing the ticket purchases - which is why we actively prevent $0 tickets using PayPal alongside Tickets Commerce. The good news is, WooCommerce has a cart system and a way to skip the PayPal API call so $0 tickets work well using the WooCommerce integration in Event Tickets Plus!

As a side note: I think $0 tickets are supported using Stripe and Tickets Commerce.

@helgatheviking
Copy link
Collaborator

helgatheviking commented Jul 27, 2022

In theory, NYP tickets should only be working on WooCommerce tickets.... so if the WooCommerce module is not active, I would think NYP Tickets should not run. @borkweb do you know a way I could check for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@borkweb @helgatheviking @BDMayhem and others