Comments (2)
Also these?
customer.hasPurchasedTicket(ticket)
bool if customer has purchased ticketcustomer.purchasedTicket(ticket)
purchasedTicket or null, see abovecustomer.hasPurchasedEvent(event)
bool if customer has purchased a ticket on provided eventcustomer.purchasedEvent(event)
ticket or null, see above. Allows to chain from event to purchasedTicket
from events.
Implemented most of these in 1.2.1:
craft.events.purchasedTickets({ customer: cart.customer })
All PurchasedTickets customer has bought.
craft.events.tickets({ customer: cart.customer })
All Tickets customer has purchased.
craft.events.events({ customer: cart.customer })
All Events customer has booked a ticket from.
craft.events.hasTicket(order)
Returns if there is at least one ticket in the provided order.
The following need not be included, as they can be achieved with the above element queries:
customer.hasPurchasedTicket(ticket)
customer.purchasedTicket(ticket)
customer.hasPurchasedEvent(event)
customer.purchasedEvent(event)
Thanks for the suggestions!
from events.
Related Issues (20)
- Overbooking is possible HOT 4
- Event capacity and ticket capacity HOT 6
- Insufficient validation of the ticket PDF download parameters HOT 3
- Ticket only available to purchase if enabled on primary site HOT 1
- duplicate event but not tickets HOT 1
- Download Tickets in Control Panel HOT 2
- Function availableQuantity of Ticket class returns bool HOT 2
- Separate user permission for event ticket settings
- Propagation Methods for events on multisite setups HOT 1
- Multisite edit issues HOT 2
- No purchased tickets are generated when the order is updated. HOT 3
- Events Causing Extra Shipping Charges in the Cart. HOT 11
- Cannot manually add ticket to order in CP HOT 4
- Ticket line items in cart not merged with cart when user logs in HOT 3
- Disable deleting a ticket if it's it's already been purchsed HOT 2
- Total capacity always defaults to 0 making it always required or the event becomes unavailable HOT 4
- Tickets in feedMe? HOT 4
- Add events for checkin and un-checkin HOT 1
- Add field setting to allow only future events to be picked
- Wrong URLs behind 'New event' Button on non-primary sites. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from events.