mijnetickets.nl
mijnetickets shop wordpress plugin
by mijnetickets.nl · github.com/mijnetickets/wordpress_plugin · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/mijnetickets/wordpress_plugin/archive/refs/heads/master.zipAdd your mijnetickets.nl ticketshop to your WordPress website with a shortcode.
Description
This plugin embeds the ticketshop of your mijnetickets.nl organisation into your WordPress website, so visitors can buy tickets without leaving your site.
Connect your organisation once by entering your shop slug, then place the shortcode on any page or post. You can show the full ticketshop with all of your events, or a single event.
Features
- Show your complete ticketshop with the
[mijnetickets]shortcode. - Show one specific event with
[mijnetickets shop_id=your_event_id]. - Pick the event from a dropdown on the settings page, which builds the shortcode for you.
- The shop language follows the language of your WordPress installation.
Requirements
You need a mijnetickets.nl account with a published webshop. Your shop slug can be found in the mijnetickets.nl dashboard under "Organisation settings > Webshop > Shop link".
External services
This plugin connects to mijnetickets.nl, the ticketing platform that hosts your ticketshop. This is required to show your events and to sell tickets.
In the WordPress admin, the plugin requests your public shop data from
https://api.mijnetickets.nl/shop/<your-slug> to display your organisation name
and the list of events you can select. This request contains only your shop slug
and the site language. It is sent when you open the plugin settings page, and the
result is cached for five minutes.
On the front end, the shortcode loads the ticketshop script from
https://shop.mijnetickets.nl/embed-v2.js. This script renders the ticketshop
and handles the ordering process, including the personal and payment details a
visitor enters while buying a ticket. Those details are submitted directly to
mijnetickets.nl and are not stored by this plugin or by your WordPress site.
Service provided by mijnetickets.nl: terms of service, privacy statement.
Installation
- Upload the plugin to the
/wp-content/plugins/directory, or install it through the WordPress plugin screen. - Activate the plugin through the "Plugins" menu in WordPress.
- Go to the "mijnetickets.nl" menu and enter your organisation slug.
- Copy the shortcode and place it on the page where the ticketshop should appear.
Frequently Asked Questions
Where do I find my organisation slug?
In the mijnetickets.nl dashboard under "Organisation settings > Webshop > Shop link". It is the last part of that link.
Can I show a single event instead of the whole shop?
Yes. Select the event on the settings page and use the shortcode it generates,
for example [mijnetickets shop_id=abc123].
Can I use the shortcode more than once on a page?
No. The ticketshop can only be shown once per page. If you place the shortcode more than once, only the first one is rendered. Put each ticketshop on its own page instead.
Changelog
1.1
- Fixed: the event list on the settings page stayed empty and the page styling disappeared. Event names are returned as a multilingual object by the API and were output directly, which aborted the page halfway through rendering.
- Admin CSS and JavaScript are now loaded as files instead of inline, so the styling no longer depends on the rest of the page rendering successfully.
- Replaced the Alpine.js dependency from an external CDN with plain JavaScript.
- Clear messages for an unknown slug, a service error or a failed connection.
- API responses are cached for five minutes.
- Output is escaped, and the shortcode loads the embed script only once per page.
- A second shortcode on the same page no longer produces a duplicate element id that could never be filled.
- The settings page now requires the
manage_optionscapability.
1.0
- First release.