×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Booking Cancel under My Bookings possible?

Booking Cancel under My Bookings possible? 7 years 11 months ago #33797

  • Alexander Webernig
  • Alexander Webernig's Avatar Topic Author
  • Away
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Hi There...
Anybody an Idea how i can insert the "Booking Cancel Button (Buchung stornieren)" under "My Bookings"....
So the Customer dont must klick on Details, because the dont find it... ;-)

Booking Cancel under My Bookings possible? 7 years 11 months ago #33798

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi,

this is going to be really complicated, as you don't have the whole booking in the my bookings view (just some details) and you would need to get at least these (semid, uuid) etc.

Code would look something like that:
$link = JRoute::_("index.php?option=com_matukio&view=book&task=cancelBooking&cid=" . $this->booking->semid . "&uuid=" . $this->booking->uuid);
 
echo " <a border=\"0\" href=\"" . $link . "\" ><span class=\"btn btn-default\" type=\"button\">"
			. JTEXT::_('COM_MATUKIO_BOOKING_CANCELLED') . "</span></a>";

But you should add some checks if cancelling is possible!

Cheers,
Yves

Booking Cancel under My Bookings possible? 7 years 11 months ago #33800

  • Alexander Webernig
  • Alexander Webernig's Avatar Topic Author
  • Away
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 15
  • Thank you received: 0
Hi Yves (Entschuldigung für mein schlechtes Englisch ;-) )
I want the "Buchung stornieren" Button also on the Same site....
Where must i insert your Code?
Sorry iam no Programmer ;-(

Booking Cancel under My Bookings possible? 7 years 11 months ago #33802

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Wir sprechen auch deutsch.. Weiter unten gibt es auch ein deutschsprachiges Forum.

Im Veranstaltugstemplate. Aber wenn du das Fragen musst wird es zu kompliziert fürchte ich. :(

components/com_matukio/views/eventlist/tmpl/bootstrap3.php

Viele Grüße aus München,
Yves
  • Page:
  • 1
Time to create page: 0.124 seconds