Possible ticket site

  • Posts: 30
  • Thank you received: 0
13 years 6 months ago #15122

Hi. I'm trying to use Hikashop to make a ticket site for the local fairgrounds. I have a temp set up for a row of seats on my site. redlodgetickets.com/preview/index.php/co...-grandstand-july-3rd . I created this using your "add to cart html" option and I changed "add to cart" to buy. But I would like it to be able to do two more things.
1. is that when the buyer clicks to buy the seat it keeps them on the page instead of moving them to the cart page so they can proceed to click on all the seats that they want.
2. when the seat is purchased that the word buy either goes away or changes to sold.

This might be to much, so I'm open to suggestions. Pretty much what I'm looking for at the end is a site that people can buy tickets from a seating chart that updates after they buy the tickets.

Thanks and I really like Hikashop and I use it on other sites.

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
13 years 6 months ago #15130

1. You can use AJAX to trigger the URL without redirecting the user to another page like explained on that post: www.hikashop.com/support/forum/4-how-to/...e.html?lang=en#11987
2. You need to add an id for each Buy link like this: <a href"..." id="seat_X">Buy</a>, where X is the seat number. Then, before the 'return false;' code of the link, you can add the code:
document.getElementById('ID').style.display = 'none';

You need to replace ID by the id of your link.

Please note that 2 just hide the buy link on the current page. If the page is refreshed, or if another user sees it, the seat will still be available.
If you want to have a reservation system, that's way more difficult and you definitely can't do that in a joomla article. You will have to build your own small reservation component for that with a place where to store the reservations and then build the listing of seats dynamically from that data.

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 0
13 years 6 months ago #15362

Thanks for the info. Is there a way that I could set it up so that when the ticket for the seat is available the default image is (image 1) and then when its gone it is "image 2" I had a friend write up a "if then statement" in php but I have to idea where that would go or if it would work

<?php IF("this" == "that"){?>
Do this
<?php}ELSE{?>
Do That
<?php }?>

Thanks for your time and sorry if I'm try to build a house with a pen hammer.

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
13 years 6 months ago #15365

You cannot have ANY php code by default in a joomla article.
You would have to use something like sourcerer for that:
www.nonumber.nl/extensions/sourcerer

But again, you need to have something which tells you if the seat is available or not. You won't know that unless you have a table in the database with that information or something alike. That also means that you need to store the information there...
Few lines of PHP won't cut it unfortunately.

Please Log in or Create an account to join the conversation.

  • Posts: 30
  • Thank you received: 0
13 years 6 months ago #15366

Thanks for all your help. I've looked everwhere for a joomla component that would do the reservations side of this process. But I can't seem to find it. I'll keep on pluggin along. Still think that Hika Shop rocks

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
13 years 6 months ago #15373

Here is a thread talking about that: forum.joomla.org/viewtopic.php?p=2331161

Please Log in or Create an account to join the conversation.

Time to create page: 0.043 seconds
Powered by Kunena Forum