1. Rob Swart
  2. Bug report
  3. Monday, 06 October 2014
  4.  Subscribe via email
Hi Yves,

My users pointed me to a problem. Some users booked twice on a popular event. Both times for the maximum bookable places.
I tested it on my test account and found out that even when you booked an event, the Booking button is still showing on the eventform (modern template) and clicking on it allows them to book again. In the My Bookings tab both bookings are showing.

I solved the problem by removing one condition for showing this button:
		// Book
if (($this->user->id OR MatukioHelperSettings::getSettings('booking_unregistered', 1) == 1)
AND $this->event->cancelled == 0
AND $this->event->nrbooked > 0
AND (count($buchopt[2]) == 0)) // OR (count($buchopt[2]) > 0 && MatukioHelperSettings::getSettings('frontend_usermehrereplaetze', 1) != 0)))
{
$bookinglink = JRoute::_("index.php?option=com_matukio&view=bookevent&cid=" . $this->event->id . ":"
. JFilterOutput::stringURLSafe($this->event->title)
);

echo " <a title=\"" . JTEXT::_('COM_MATUKIO_BOOK') . "\" href=\"" . $bookinglink
. "\"><span class=\"mat_book\" type=\"button\"><img src=\""
. MatukioHelperUtilsBasic::getComponentImagePath()
. "1116.png\" border=\"0\" align=\"absmiddle\"> "
. JTEXT::_('COM_MATUKIO_BOOK') . "</span></a>";
}

This code is found in event/tmpl/modern.php around row 543.

The problem is that I don't know if my sollution is correct. It helped, but I cannot explain why the condition on the "Book more than one place" configuration option is there. If I set this option to "No", no one can book more than one place on any event. Than the question of how many places one wants to book, doesn't show on the booking form.

My configuration setup is:
Joomla version: 3.3.6
Matukio version: 4.5.0
No payment plugins are used
Can users book more than one place = Yes

Can you please take a look?
Responses (6)


There are %s replies to this question. If you want to see them you need a valid subscription.
If you have a valid subscription, please login now.
Visit store now

Last questions

Is Ccomment still alive?
Is Ccomment still being supported? It's time for my Pro renewal but I haven't se...
0 Replies
Posted on Thursday, 14 August 2025
  • New
  • Anzeige von mehrtägigen Events auf Buchungsseite
    We have been using Matukio for quite some time now. Unfortunately, we have been ...
    3 Replies
    Posted on Sunday, 03 August 2025
    Assistance Needed – Error When Posting Comments
    Hello, I’m experiencing an issue when trying to submit a comment on my site u...
    0 Replies
    Posted on Sunday, 10 August 2025
  • New
  • Hotspots Pro 6.0.13 compatability with Joomla 5.3.
    Running Hotspots Pro 6.0.13 on Joomla 4.4.13 and want to upgrade to Joomla 5.3.1...
    2 Replies
    Posted on Friday, 04 July 2025
    some questions on Hotspots
    Hi, On Hotspots extension : 1) is it possible to add our own map layer / v...
    0 Replies
    Posted on Thursday, 03 July 2025